def test_stop(self): c = Mock() tasks = Tasks(c) self.assertIsNone(c.task_consumer) self.assertIsNone(c.qos) c.task_consumer = Mock() tasks.stop(c)
def test_stop(self): c = Mock() tasks = Tasks(c) self.assertIsNone(c.task_consumer) self.assertIsNone(c.qos) self.assertEqual(tasks.initial_prefetch_count, 2) c.task_consumer = Mock() tasks.stop(c)
def test_stop_already_stopped(self): c = Mock() tasks = Tasks(c) tasks.stop(c)