test_functional.test_amqplib: test_produce__consume_multiple: Make sure queues are declared before doing the purge.

This commit is contained in:
Ask Solem 2010-09-16 16:24:46 +02:00
parent 5d3475736e
commit 88eff095e2
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ class test_amqplib(unittest.TestCase):
b1 = Queue("pyamqplib.b1", self.exchange, "b1")(chan1)
b2 = Queue("pyamqplib.b2", self.exchange, "b2")(chan1)
b3 = Queue("pyamqplib.b3", self.exchange, "b3")(chan1)
[q.declare() for q in (b1, b2, b3)]
[q.purge() for q in (b1, b2, b3)]
producer.publish("b1", routing_key="b1")