summaryrefslogtreecommitdiffhomepage
path: root/tests/test_util.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2012-10-15 13:21:58 -0700
committerJeff Forcier <jeff@bitprophet.org>2012-10-15 13:21:58 -0700
commitdfb45dec7fac59559009cac16d9b354ef4890de3 (patch)
tree88c1b5b24d280399abd7e283624662c113566ee3 /tests/test_util.py
parent7c12862b55224faea75758ceef78135fa9119df2 (diff)
Refactoring: it's a thing. Re #85
Diffstat (limited to 'tests/test_util.py')
-rw-r--r--tests/test_util.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index 7e56245d..458709b2 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -28,6 +28,7 @@ import unittest
from Crypto.Hash import SHA
import paramiko.util
+from util import ParamikoTest
test_config_file = """\
Host *
@@ -58,17 +59,7 @@ BGQ3GQ/Fc7SX6gkpXkwcZryoi4kNFhHu5LvHcZPdxXV1D+uTMfGS1eyd2Yz/DoNWXNAl8TI0cAsW\
from paramiko import *
-class UtilTest (unittest.TestCase):
-
- assertTrue = unittest.TestCase.failUnless # for Python 2.3 and below
- assertFalse = unittest.TestCase.failIf # for Python 2.3 and below
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
+class UtilTest(ParamikoTest):
def test_1_import(self):
"""
verify that all the classes can be imported from paramiko.