def test_calling_the_object_is_the_same_as_run(self): random_return = random.randint(1000, 2000) def foo(): return random_return task = WrappedCallableTask(foo) eq_(task(), task.run())
def test_base_task_raises_exception_on_call_to_run(): task = Task() task.run()