def testThreadLogContextExtendLabel(self):
    context = log_util.ThreadLogContext()
    self.assertEqual(context.label, '')
    with context.ExtendLabel('LABEL-A'):
      self.assertEqual(context.label, 'LABEL-A ')
      with context.ExtendLabel('LABEL-B'):
        self.assertEqual(context.label, 'LABEL-A LABEL-B ')
      self.assertEqual(context.label, 'LABEL-A ')
    self.assertEqual(context.label, '')
Initializes the file-like object.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/tests/log_util_test.py/LogUtilTestCase.testThreadLogContextExtendLabel--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/file_io/sqlite_blob_file_io.py/SQLiteBlobFile.__init__