Beispiel #1
0
 def _verify_task_filled(self):
     queue = _get_task_queue()
     size = len(queue)
     eq_(size, 1, 'Expected 1 task in the queue, found %d' % size)
     cls, args, kwargs = queue[0]
     eq_(cls.name, '%s.%s' % (test_task.__module__, test_task.__name__),
         'Expected the test task, found %s' % cls.name)
Beispiel #2
0
 def _verify_task_filled(self):
     queue = _get_task_queue()
     size = len(queue)
     eq_(size, 1, 'Expected 1 task in the queue, found %d' % size)
     cls, args, kwargs = queue[0]
     eq_(cls.name,
         '%s.%s' % (test_task.__module__, test_task.__name__),
         'Expected the test task, found %s' % cls.name)
Beispiel #3
0
 def _verify_task_empty(self):
     assert len(_get_task_queue()) == 0, (
         'Expected empty queue, got %s: %s' % (len(_get_task_queue()),
                                               _get_task_queue()))