summaryrefslogtreecommitdiff
path: root/qpid/python/tests_0-10/dtx.py
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-09-21 15:13:52 +0000
committerGordon Sim <gsim@apache.org>2007-09-21 15:13:52 +0000
commitfd4e234dea02bdef1c4db2bea061360de015c8f5 (patch)
tree9f2530766490d445c2cea764d2776c7a7816e2bb /qpid/python/tests_0-10/dtx.py
parentac502eb4336c57f5f1bf102f2d58f003d71dc82e (diff)
downloadqpid-python-fd4e234dea02bdef1c4db2bea061360de015c8f5.tar.gz
Moved c++ over to using the same preview file for 0-10 work as java.
Removed all channel class related code from broker as a result. Did the same for some python tests I missed earlier. Renamed ChannelAdapter to ChannelHandler. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@578167 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/tests_0-10/dtx.py')
-rw-r--r--qpid/python/tests_0-10/dtx.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/qpid/python/tests_0-10/dtx.py b/qpid/python/tests_0-10/dtx.py
index 000eddff21..ce6e467e0a 100644
--- a/qpid/python/tests_0-10/dtx.py
+++ b/qpid/python/tests_0-10/dtx.py
@@ -461,8 +461,11 @@ class DtxTests(TestBase):
channel2.dtx_demarcation_select()
channel2.dtx_demarcation_start(xid=tx)
- channel2.message_get(queue="dummy", destination="dummy")
+ channel2.message_subscribe(queue="dummy", destination="dummy", confirm_mode=1)
+ channel2.message_flow(destination="dummy", unit=0, value=1)
+ channel2.message_flow(destination="dummy", unit=1, value=0xFFFFFFFF)
self.client.queue("dummy").get(timeout=1).complete()
+ channel2.message_cancel(destination="dummy")
channel2.message_transfer(content=Content(properties={'routing_key':"dummy"}, body="whatever"))
channel2.session_close()
@@ -589,8 +592,11 @@ class DtxTests(TestBase):
def swap(self, channel, src, dest):
#consume from src:
- channel.message_get(destination="temp-swap", queue=src)
+ channel.message_subscribe(destination="temp-swap", queue=src, confirm_mode=1)
+ channel.message_flow(destination="temp-swap", unit=0, value=1)
+ channel.message_flow(destination="temp-swap", unit=1, value=0xFFFFFFFF)
msg = self.client.queue("temp-swap").get(timeout=1)
+ channel.message_cancel(destination="temp-swap")
msg.complete();
#re-publish to dest