예제 #1
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))
예제 #2
0
 def test_dump_message_no_message(self):
     self.assertIn('No messages in queue', dump_message(None))
예제 #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))
예제 #4
0
 def test_dump_message_no_message(self):
     self.assertIn('No messages in queue', dump_message(None))
예제 #5
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))
예제 #6
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))