class_docstr: Base TestCase to be used for all tests.
  
  `test_data` class attribute: path to the directory with test data.
  `tmp_dir` attribute: path to temp directory reset before every test.
class_docstr_tok: ["Base","TestCase","to","be","used","for","all","tests",".","`","test_data","`","class","attribute",":","path","to","the","directory","with","test","data",".","`","tmp_dir","`","attribute",":","path","to","temp","directory","reset","before","every","test","."]
code: def assertLogs(self, text, level="info"):
      with mock.patch.object(logging, level) as mock_log:
          yield
          concat_logs = ""
          for log_call in mock_log.call_args_list:
              args = log_call[0]
              base, args = args[0], args[1:]
              log_text = base % tuple(args)
              concat_logs += " " + log_text
          self.assertIn(text, concat_logs)
  
file_path: datasets/tensorflow_datasets/testing/test_case.py
imports: import contextlib
  import os
  import tempfile
  from unittest import mock
  from absl import logging
  from tensorflow_datasets import setup_teardown
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  from tensorflow_datasets.testing import test_case_in_context
  from tensorflow_datasets.testing import test_utils
label_desc: Use image node_id 5 for calling the TestCase obj's underlying member method code with example usage: obj.assertLogs(text, level) without return types