summaryrefslogtreecommitdiff
path: root/python/tests_0-10/broker.py
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-09-21 10:39:36 +0000
committerGordon Sim <gsim@apache.org>2007-09-21 10:39:36 +0000
commit03cd19556c261f43a8d95bd7d803c59bd488aeef (patch)
treec589afb8a7d83dc44c445fc44df7850d0bf01ae4 /python/tests_0-10/broker.py
parent75d71dd695da1612d8ff6768a1a4b8082b2d2d65 (diff)
downloadqpid-python-03cd19556c261f43a8d95bd7d803c59bd488aeef.tar.gz
Use octet each for class and method id (changed c++ and python)
Modified indexes in xml for message.empty, message.offset and the c++ cluster class Fixed encoding for rfc1982-long-set in c++ and python (its a size not a count that is prepended) Fixed minor typo in configuration option help string Use session.open/close in python tests, handle session.closed Commented out the response tag in session.close due to pythons ambiguity as to whether session.closed is a response or not Disabled broker.test_closed_channel (due to above issue); broker behaves as expected but test fails; test_invalid_channel is safe enough for now. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@578053 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests_0-10/broker.py')
-rw-r--r--python/tests_0-10/broker.py22
1 files changed, 2 insertions, 20 deletions
diff --git a/python/tests_0-10/broker.py b/python/tests_0-10/broker.py
index 0df7eb09fa..99936ba742 100644
--- a/python/tests_0-10/broker.py
+++ b/python/tests_0-10/broker.py
@@ -101,29 +101,11 @@ class BrokerTests(TestBase):
def test_closed_channel(self):
channel = self.client.channel(200)
- channel.channel_open()
- channel.channel_close()
+ channel.session_open()
+ channel.session_close()
try:
channel.queue_declare(exclusive=True)
self.fail("Expected error on queue_declare for closed channel")
except Closed, e:
if isinstance(e.args[0], str): self.fail(e)
self.assertConnectionException(504, e.args[0])
-
- def test_channel_flow(self):
- channel = self.channel
- channel.queue_declare(queue="flow_test_queue", exclusive=True)
- self.subscribe(destination="my-tag", queue="flow_test_queue")
- incoming = self.client.queue("my-tag")
-
- channel.channel_flow(active=False)
- c = Content("abcdefghijklmnopqrstuvwxyz", properties = {"routing_key" : "flow_test_queue"})
- channel.message_transfer(content = c)
- try:
- incoming.get(timeout=1)
- self.fail("Received message when flow turned off.")
- except Empty: None
-
- channel.channel_flow(active=True)
- msg = incoming.get(timeout=1)
- self.assertEqual("abcdefghijklmnopqrstuvwxyz", msg.content.body)