Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
 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]))
Exemplo n.º 3
0
 def test_process(self):
     add(self.callback, 1)
     process()
     assert self.callback.called