summaryrefslogtreecommitdiff
path: root/qpid/python/tests_0-10/persistence.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-05-08 20:52:28 +0000
committerRafael H. Schloming <rhs@apache.org>2008-05-08 20:52:28 +0000
commitf57945fc290b3599c0c292930189945dcc30b0aa (patch)
treeb25b8edbd9a94df3b106deece58bacdbe61aad57 /qpid/python/tests_0-10/persistence.py
parent8e44c8d17d2bed4f69ef3a9bcfdec5d087514315 (diff)
downloadqpid-python-f57945fc290b3599c0c292930189945dcc30b0aa.tar.gz
QPID-979: added access to enums through the session so that symbolic constants can be used rather than hard coded ones; also added default loading of the spec
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@654618 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/tests_0-10/persistence.py')
-rw-r--r--qpid/python/tests_0-10/persistence.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/python/tests_0-10/persistence.py b/qpid/python/tests_0-10/persistence.py
index a4b5691910..815ad1f3dc 100644
--- a/qpid/python/tests_0-10/persistence.py
+++ b/qpid/python/tests_0-10/persistence.py
@@ -49,8 +49,8 @@ class PersistenceTests(TestBase010):
#create consumer
session.message_subscribe(queue = "q", destination = "a", accept_mode = 1, acquire_mode=0)
- session.message_flow(unit = 1, value = 0xFFFFFFFF, destination = "a")
- session.message_flow(unit = 0, value = 10, destination = "a")
+ session.message_flow(unit = session.credit_unit.byte, value = 0xFFFFFFFF, destination = "a")
+ session.message_flow(unit = session.credit_unit.message, value = 10, destination = "a")
queue = session.incoming("a")
#consume the message, cancel subscription (triggering auto-delete), then ack it