summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2017-11-09 16:32:42 -0800
committerJeff Forcier <jeff@bitprophet.org>2017-11-09 16:32:42 -0800
commit84ce0d5c04092c5116ee3aa64445581bf142e562 (patch)
treeb0f5d9305991b953eae3936c082f209789b9f1c6 /tests
parent430140d6497c4616063cc8c4d631434a2bfb4bd3 (diff)
Split out setup/teardown bits of client tests into its own class.
Paves way for multiple client-related groups of tests
Diffstat (limited to 'tests')
-rw-r--r--tests/test_client.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_client.py b/tests/test_client.py
index 0483cf6f..c627e1c3 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -111,8 +111,7 @@ class NullServer(paramiko.ServerInterface):
return True
-class SSHClientTest (unittest.TestCase):
-
+class ClientTest(unittest.TestCase):
def setUp(self):
self.sockl = socket.socket()
self.sockl.bind(('localhost', 0))
@@ -195,6 +194,8 @@ class SSHClientTest (unittest.TestCase):
stdout.close()
stderr.close()
+
+class SSHClientTest(ClientTest):
def test_1_client(self):
"""
verify that the SSHClient stuff works too.