298
298
self.requireFeature(features.paramiko)
299
299
super(SSHVendorBadConnection, self).setUp()
302
301
# open a random port, so we know nobody else is using it
303
302
# but don't actually listen on the port.
306
306
self.bogus_url = 'sftp://%s:%s/' % s.getsockname()
314
308
def set_vendor(self, vendor):
318
312
def test_bad_connection_paramiko(self):
319
313
"""Test that a real connection attempt raises the right error"""