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