Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
add non-ASCII char test for rabbitmq
Browse files Browse the repository at this point in the history
  • Loading branch information
binux committed Nov 16, 2014
1 parent 9adc8a5 commit 485ab74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ def test_10_put(self):
self.assertEqual(self.q1.qsize(), 0)
self.assertEqual(self.q2.qsize(), 0)
self.q1.put('TEST_DATA1', timeout=3)
self.q1.put('TEST_DATA2', timeout=3)
self.q1.put('TEST_DATA2_中文', timeout=3)
time.sleep(0.01)
self.assertEqual(self.q1.qsize(), 2)
self.assertEqual(self.q2.qsize(), 2)

def test_20_get(self):
self.assertEqual(self.q1.get(timeout=0.01), 'TEST_DATA1')
self.assertEqual(self.q2.get_nowait(), 'TEST_DATA2')
self.assertEqual(self.q2.get_nowait(), 'TEST_DATA2_中文')
with self.assertRaises(self.q1.Empty):
self.q2.get(timeout=0.01)
with self.assertRaises(self.q1.Empty):
Expand Down

0 comments on commit 485ab74

Please sign in to comment.