summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-03-06 11:44:36 +0000
committerGordon Sim <gsim@apache.org>2008-03-06 11:44:36 +0000
commitb7c474ea80fce5d53236aeea9f74c9107da0152d (patch)
tree6d0a36c807c309cdebe3ba18dfe4c0bbbb75bfb8 /python
parent7e162fa97ef0d430714b9630121a055fe5adece9 (diff)
downloadqpid-python-b7c474ea80fce5d53236aeea9f74c9107da0152d.tar.gz
Fix message delivery for 0-10 final codepath
Convert two more python tests to use 0-10 client git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@634229 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r--python/cpp_failing_0-10.txt5
-rw-r--r--python/tests_0-10/broker.py4
2 files changed, 2 insertions, 7 deletions
diff --git a/python/cpp_failing_0-10.txt b/python/cpp_failing_0-10.txt
index 974c165ae9..e1f6a60f3a 100644
--- a/python/cpp_failing_0-10.txt
+++ b/python/cpp_failing_0-10.txt
@@ -2,9 +2,6 @@ tests.codec.FieldTableTestCase.test_field_table_decode
tests.codec.FieldTableTestCase.test_field_table_multiple_name_value_pair
tests.codec.FieldTableTestCase.test_field_table_name_value_pair
tests_0-10.query.QueryTests.test_exchange_bound_header
-tests_0-10.persistence.PersistenceTests.test_ack_message_from_deleted_queue
-tests_0-10.persistence.PersistenceTests.test_delete_queue_after_publish
-tests_0-10.persistence.PersistenceTests.test_queue_deletion
tests_0-10.tx.TxTests.test_auto_rollback
tests_0-10.tx.TxTests.test_commit
tests_0-10.tx.TxTests.test_rollback
@@ -92,6 +89,4 @@ tests_0-10.queue.QueueTests.test_unbind_topic
tests_0-10.broker.BrokerTests.test_closed_channel
tests_0-10.broker.BrokerTests.test_ack_and_no_ack
tests_0-10.broker.BrokerTests.test_invalid_channel
-tests_0-10.broker.BrokerTests.test_simple_delivery_queued
-tests_0-10.broker.BrokerTests.test_simple_delivery_immediate
tests_0-10.example.ExampleTest.test_example
diff --git a/python/tests_0-10/broker.py b/python/tests_0-10/broker.py
index bfecb5c166..100288bbbb 100644
--- a/python/tests_0-10/broker.py
+++ b/python/tests_0-10/broker.py
@@ -70,7 +70,7 @@ class BrokerTests(TestBase010):
body = "Immediate Delivery"
session.message_transfer("amq.fanout", None, None, Message(body))
msg = queue.get(timeout=5)
- self.assert_(msg.content.body == body)
+ self.assert_(msg.body == body)
def test_simple_delivery_queued(self):
"""
@@ -89,7 +89,7 @@ class BrokerTests(TestBase010):
session.message_flow(unit = 1, value = 0xFFFFFFFF, destination = consumer_tag)
queue = session.incoming(consumer_tag)
msg = queue.get(timeout=5)
- self.assert_(msg.content.body == body)
+ self.assert_(msg.body == body)
def test_invalid_channel(self):
channel = self.client.channel(200)