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) assert c.task_consumer is None assert c.qos is None c.task_consumer = Mock() tasks.stop(c)
def test_stop_already_stopped(self): c = Mock() tasks = Tasks(c) tasks.stop(c)