def test_delayable(self): @task def foo(*args, **kwargs): # Assert that when it's called, it's beind delayed. assert kwargs['delivery_info']['is_eager'] add(foo, 1) process()
def test_process_groups(self): add(self.callback, 1) add(self.callback, 4) process() eq_(set(self.callback.call_args[0][0]), set([1, 4]))
def test_process(self): add(self.callback, 1) process() assert self.callback.called