Author: gsim
Date: Tue Dec 11 13:11:09 2012
New Revision: 1420141

URL: http://svn.apache.org/viewvc?rev=1420141&view=rev
Log:
PROTON-118: provide some extra info when asserts fail

Modified:
    qpid/proton/trunk/tests/proton_tests/messenger.py

Modified: qpid/proton/trunk/tests/proton_tests/messenger.py
URL: 
http://svn.apache.org/viewvc/qpid/proton/trunk/tests/proton_tests/messenger.py?rev=1420141&r1=1420140&r2=1420141&view=diff
==============================================================================
--- qpid/proton/trunk/tests/proton_tests/messenger.py (original)
+++ qpid/proton/trunk/tests/proton_tests/messenger.py Tue Dec 11 13:11:09 2012
@@ -158,7 +158,7 @@ class MessengerTest(Test):
       trackers.append(self.client.put(msg))
 
     for t in trackers:
-      assert self.client.status(t) is PENDING
+      assert self.client.status(t) is PENDING, (t, self.client.status(t))
 
     self.client.send()
 
@@ -229,7 +229,7 @@ class MessengerTest(Test):
     self.client.send()
 
     for t in trackers:
-      assert self.client.status(t) is ACCEPTED
+      assert self.client.status(t) is ACCEPTED, (t, self.client.status(t))
 
     self.client.incoming_window = 10
 
@@ -242,4 +242,4 @@ class MessengerTest(Test):
         trackers.append(self.client.get())
         remaining -= 1
     for t in trackers:
-      assert self.client.status(t) is ACCEPTED
+      assert self.client.status(t) is ACCEPTED, (t, self.client.status(t))



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to