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 | 39f3ad3af4352da1a4cba12df36b4df80702df65 (patch) | |
| tree | 14708cd09737800aafd712496cdeda8c6ba7e85a /python/qpid/tests/messaging/endpoints.py | |
| parent | a10f9d9d9ca29839b7ffe4f83d454a7e03c63ab4 (diff) | |
| download | qpid-python-39f3ad3af4352da1a4cba12df36b4df80702df65.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/messaging/endpoints.py')
| -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: |
