def test_against_function_memory_leak(self): executor = Executor() executor.run_function(test_function) executor.wait() self.assertEqual(0, len(executor._function_titles))
def test_against_function_memory_leak(self): executor = Executor() executor.run_function(background_function) executor.wait() self.assertEqual(0, len(executor._function_titles))
def test_function_output(self): executor = Executor() executor.run_function(test_function) executor.wait() output = executor.results[0] self.assertEqual(TestExecutor.output, output)
def test_function_output(self): executor = Executor() executor.run_function(background_function) executor.wait() output = executor.results[0] self.assertEqual(TestExecutor.output, output)