Пример #1
0
 def test_class_string(self):
     check_list = ['PhaseExecutorThread', 'phase_one']
     phase_thread = phase_executor.PhaseExecutorThread(phase_one, ' ')
     name = str(phase_thread)
     found = True
     for item in check_list:
         if item not in name:
             found = False
     if not found:
         self.assertEqual(0, 1)
Пример #2
0
 def test_class_string(self):
     check_list = ['PhaseExecutorThread', 'phase_one']
     mock_test_state = mock.create_autospec(test_state.TestState)
     phase_thread = phase_executor.PhaseExecutorThread(
         phase_one,
         mock_test_state,
         run_with_profiling=False,
         subtest_rec=None)
     name = str(phase_thread)
     found = True
     for item in check_list:
         if item not in name:
             found = False
     if not found:
         self.assertEqual(0, 1)