Beispiel #1
0
 def test_dump_message_no_message(self):
     self.assertIn('No messages in queue', dump_message(None))
Beispiel #2
0
 def test_dump_message(self):
     m = Mock()
     m.body = 'the quick brown fox'
     m.properties = {'a': 1}
     m.delivery_info = {'exchange': 'bar'}
     self.assertTrue(dump_message(m))
Beispiel #3
0
 def test_dump_message(self):
     m = Mock()
     m.body = 'the quick brown fox'
     m.properties = {'a': 1}
     m.delivery_info = {'exchange': 'bar'}
     self.assertTrue(dump_message(m))
Beispiel #4
0
 def test_dump_message_no_message(self):
     self.assertIn('No messages in queue', dump_message(None))
Beispiel #5
0
 def test_dump_message_no_message(self):
     assert 'No messages in queue' in dump_message(None)
Beispiel #6
0
 def test_dump_message_no_message(self):
     assert 'No messages in queue' in dump_message(None)