diff options
author | Rafael H. Schloming <rhs@apache.org> | 2010-02-17 20:21:10 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2010-02-17 20:21:10 +0000 |
commit | 3add7d150984e7904acf0898cab8cb7941de27ba (patch) | |
tree | eab8ccb38569a22551c0ed4c9f81c93b8a96fb75 /python/qpid/tests/messaging.py | |
parent | c3b903579b10d3eaaad41a0f9b5351fa955f2528 (diff) | |
download | qpid-python-3add7d150984e7904acf0898cab8cb7941de27ba.tar.gz |
fixed subject defaulting and added test
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@911166 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/tests/messaging.py')
-rw-r--r-- | python/qpid/tests/messaging.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/python/qpid/tests/messaging.py b/python/qpid/tests/messaging.py index ca35c56166..125f1b7157 100644 --- a/python/qpid/tests/messaging.py +++ b/python/qpid/tests/messaging.py @@ -799,6 +799,19 @@ test-bindings-additive-queue; { self.drain(rcv_a, expected=[m1]) self.drain(rcv_b, expected=[m2]) + def testSubjectDefault(self): + m1 = self.content("testSubjectDefault", 1) + m2 = self.content("testSubjectDefault", 2) + snd = self.ssn.sender("amq.topic/a") + rcv = self.ssn.receiver("amq.topic") + snd.send(m1) + snd.send(Message(subject="b", content=m2)) + e1 = rcv.fetch(timeout=0) + e2 = rcv.fetch(timeout=0) + assert e1.subject == "a", "subject: %s" % e1.subject + assert e2.subject == "b", "subject: %s" % e2.subject + self.assertEmpty(rcv) + NOSUCH_Q = "this-queue-should-not-exist" UNPARSEABLE_ADDR = "name/subject; {bad options" UNLEXABLE_ADDR = "\0x0\0x1\0x2\0x3" |