From 39f3ad3af4352da1a4cba12df36b4df80702df65 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Wed, 14 Apr 2010 12:01:59 +0000 Subject: added get_error git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933920 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/tests/messaging/endpoints.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python/qpid/tests') diff --git a/python/qpid/tests/messaging/endpoints.py b/python/qpid/tests/messaging/endpoints.py index 91940a881e..9ccf8ae8e6 100644 --- a/python/qpid/tests/messaging/endpoints.py +++ b/python/qpid/tests/messaging/endpoints.py @@ -44,6 +44,14 @@ class SetupTests(Base): except ConnectError, e: assert "Connection refused" in str(e) + def testGetError(self): + self.conn = Connection("localhost:0") + try: + self.conn.open() + assert False, "connect succeeded" + except ConnectError, e: + assert self.conn.get_error() == e + def use_fds(self): fds = [] try: -- cgit v1.2.1