diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2008-05-08 20:52:28 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2008-05-08 20:52:28 +0000 |
| commit | f57945fc290b3599c0c292930189945dcc30b0aa (patch) | |
| tree | b25b8edbd9a94df3b106deece58bacdbe61aad57 /qpid/python/tests_0-10/example.py | |
| parent | 8e44c8d17d2bed4f69ef3a9bcfdec5d087514315 (diff) | |
| download | qpid-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/example.py')
| -rw-r--r-- | qpid/python/tests_0-10/example.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/python/tests_0-10/example.py b/qpid/python/tests_0-10/example.py index 1e140a285d..83d208192b 100644 --- a/qpid/python/tests_0-10/example.py +++ b/qpid/python/tests_0-10/example.py @@ -69,8 +69,8 @@ class ExampleTest (TestBase010): # field that is filled if the reply includes content. In this case the # interesting field is the consumer_tag. session.message_subscribe(queue="test-queue", destination="consumer_tag") - session.message_flow(destination="consumer_tag", unit=0, value=0xFFFFFFFF) - session.message_flow(destination="consumer_tag", unit=1, value=0xFFFFFFFF) + session.message_flow(destination="consumer_tag", unit=session.credit_unit.message, value=0xFFFFFFFF) + session.message_flow(destination="consumer_tag", unit=session.credit_unit.byte, value=0xFFFFFFFF) # We can use the session.incoming(...) method to access the messages # delivered for our consumer_tag. |
