Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 5
0
 def test_stop_already_stopped(self):
     c = Mock()
     tasks = Tasks(c)
     tasks.stop(c)
Esempio n. 6
0
 def test_stop_already_stopped(self):
     c = Mock()
     tasks = Tasks(c)
     tasks.stop(c)