Пример #1
0
 def test_against_function_memory_leak(self):
     executor = Executor()
     executor.run_function(test_function)
     executor.wait()
     self.assertEqual(0, len(executor._function_titles))
Пример #2
0
 def test_against_function_memory_leak(self):
     executor = Executor()
     executor.run_function(background_function)
     executor.wait()
     self.assertEqual(0, len(executor._function_titles))
Пример #3
0
 def test_function_output(self):
     executor = Executor()
     executor.run_function(test_function)
     executor.wait()
     output = executor.results[0]
     self.assertEqual(TestExecutor.output, output)
Пример #4
0
 def test_function_output(self):
     executor = Executor()
     executor.run_function(background_function)
     executor.wait()
     output = executor.results[0]
     self.assertEqual(TestExecutor.output, output)