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 | fd5ba0c75091336020287825a973c88a07dbe5b4 (patch) | |
| tree | 5a90ff41987b15e85f254a9266d9c933cd505b9e /python/tests_0-10/tx.py | |
| parent | 32613b43c550fec2785299a271b3818db75490c4 (diff) | |
| download | qpid-python-fd5ba0c75091336020287825a973c88a07dbe5b4.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/qpid@654618 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests_0-10/tx.py')
| -rw-r--r-- | python/tests_0-10/tx.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/tests_0-10/tx.py b/python/tests_0-10/tx.py index 5aef2b00e8..da162d54ec 100644 --- a/python/tests_0-10/tx.py +++ b/python/tests_0-10/tx.py @@ -251,13 +251,13 @@ class TxTests(TestBase010): session = session or self.session consumer_tag = keys["destination"] session.message_subscribe(**keys) - 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) def enable_flow(self, tag, session=None): session = session or self.session - session.message_flow(destination=tag, unit=0, value=0xFFFFFFFF) - session.message_flow(destination=tag, unit=1, value=0xFFFFFFFF) + session.message_flow(destination=tag, unit=session.credit_unit.message, value=0xFFFFFFFF) + session.message_flow(destination=tag, unit=session.credit_unit.byte, value=0xFFFFFFFF) def complete(self, session, msg): session.receiver._completed.add(msg.id)#TODO: this may be done automatically |
