def test_failure(self): consumer = MQConsumer(mqManager=self.myManager, mqURI="fake.cern.ch::Queue::FakeQueue", consumerId='consumer1') result = consumer.get() self.assertFalse(result['OK']) self.assertEqual(result['Message'], 'No messages ( 1141 : No messages in queue)')
def test_failure(self): consumer = MQConsumer(mqManager=self.myManager, mqURI="fake.cern.ch::Queues::FakeQueue", consumerId="consumer1") result = consumer.get() self.assertFalse(result["OK"]) self.assertEqual(result["Message"], "No messages ( 1141 : No messages in queue)")
def test_sucess(self): consumer = MQConsumer(mqManager=self.myManager, mqURI="bad.cern.ch::Queue::FakeQueue", consumerId='consumer1') result = consumer.get() self.assertFalse(result['OK'])
def test_sucess( self ): consumer = MQConsumer(mqManager = self.myManager, mqURI = "bad.cern.ch::Queue::FakeQueue", consumerId = 'consumer1') result = consumer.get() self.assertFalse(result['OK'])
def test_failure( self ): consumer = MQConsumer(mqManager = self.myManager, mqURI = "fake.cern.ch::Queue::FakeQueue", consumerId = 'consumer1') result = consumer.get() self.assertFalse(result['OK']) self.assertEqual(result['Message'], 'No messages ( 1141 : No messages in queue)')