diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2010-04-14 12:01:59 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2010-04-14 12:01:59 +0000 |
| commit | c9d3f90922dc87d70433ace501e970fee06dbd43 (patch) | |
| tree | 14708cd09737800aafd712496cdeda8c6ba7e85a /python/qpid/tests | |
| parent | 5eb6bf11fd26f5467724f425b66075cebe8490bc (diff) | |
| download | qpid-python-c9d3f90922dc87d70433ace501e970fee06dbd43.tar.gz | |
added get_error
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933920 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/tests')
| -rw-r--r-- | python/qpid/tests/messaging/endpoints.py | 8 |
1 files changed, 8 insertions, 0 deletions
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: |
