Example #1
0
    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())
Example #2
0
    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())
Example #3
0
def test_base_task_raises_exception_on_call_to_run():
    task = Task()
    task.run()
Example #4
0
def test_base_task_raises_exception_on_call_to_run():
    task = Task()
    task.run()