[Telepathy-commits] [telepathy-gabble/master] send_socks5_init: add invalid and not used streamhost
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Thu Feb 26 02:55:02 PST 2009
---
tests/twisted/bytestream.py | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/tests/twisted/bytestream.py b/tests/twisted/bytestream.py
index 411f994..1d1d45b 100644
--- a/tests/twisted/bytestream.py
+++ b/tests/twisted/bytestream.py
@@ -176,7 +176,15 @@ class BytestreamS5B(Bytestream):
def open_bytestream(self, expected=None):
port = self._listen_socks5()
- self._send_socks5_init([(self.initiator, '127.0.0.1', port)])
+ self._send_socks5_init([
+ # Not working streamhost
+ ('invalid.invalid', 'invalid.invalid', port),
+ # Working streamhost
+ (self.initiator, '127.0.0.1', port),
+ # This works too but should not be tried as Gabble should just
+ # connect to the previous one
+ ('Not me', '127.0.0.1', port),
+ ])
return self._socks5_expect_connection(expected)
--
1.5.6.5
More information about the telepathy-commits
mailing list