diff options
author | Alan Conway <aconway@apache.org> | 2006-09-21 18:26:31 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2006-09-21 18:26:31 +0000 |
commit | 474ed3cf1e125360d26dad4376e106e8b48541ac (patch) | |
tree | 4f1043da7f03a5ec230539a62afac3fb0f0f0b73 /python/tests/queue.py | |
parent | 82e07bb30905feb2c11bb6d9f3624f976ab070a5 (diff) | |
download | qpid-python-474ed3cf1e125360d26dad4376e106e8b48541ac.tar.gz |
Implemented topic pattern matching for the TopicExchange.
Corrected default bindings to use the exchange named "" rather than
"amqp.direct".
Added python and unit tests for all of the above.
Minor improvements to testlib.py, also some tests for testlib itself.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@448624 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests/queue.py')
-rw-r--r-- | python/tests/queue.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/tests/queue.py b/python/tests/queue.py index 92260a7d64..65baaaa00b 100644 --- a/python/tests/queue.py +++ b/python/tests/queue.py @@ -156,9 +156,9 @@ class QueueTests(TestBase): #straight-forward case: channel.queue_declare(queue="delete-me") - channel.basic_publish(exchange="amq.direct", routing_key="delete-me", content=Content("a")) - channel.basic_publish(exchange="amq.direct", routing_key="delete-me", content=Content("b")) - channel.basic_publish(exchange="amq.direct", routing_key="delete-me", content=Content("c")) + channel.basic_publish(routing_key="delete-me", content=Content("a")) + channel.basic_publish(routing_key="delete-me", content=Content("b")) + channel.basic_publish(routing_key="delete-me", content=Content("c")) reply = channel.queue_delete(queue="delete-me") self.assertEqual(3, reply.message_count) #check that it has gone be declaring passively @@ -189,7 +189,7 @@ class QueueTests(TestBase): #create a queue and add a message to it (use default binding): channel.queue_declare(queue="delete-me-2") channel.queue_declare(queue="delete-me-2", passive="True") - channel.basic_publish(exchange="amq.direct", routing_key="delete-me-2", content=Content("message")) + channel.basic_publish(routing_key="delete-me-2", content=Content("message")) #try to delete, but only if empty: try: |