예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
0
    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)
예제 #4
0
    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)
예제 #5
0
 def test_stop_already_stopped(self):
     c = Mock()
     tasks = Tasks(c)
     tasks.stop(c)
예제 #6
0
 def test_stop_already_stopped(self):
     c = Mock()
     tasks = Tasks(c)
     tasks.stop(c)