diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2012-10-15 13:21:58 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2012-10-15 13:21:58 -0700 |
commit | dfb45dec7fac59559009cac16d9b354ef4890de3 (patch) | |
tree | 88c1b5b24d280399abd7e283624662c113566ee3 /tests/util.py | |
parent | 7c12862b55224faea75758ceef78135fa9119df2 (diff) | |
download | paramiko-dfb45dec7fac59559009cac16d9b354ef4890de3.tar.gz |
Refactoring: it's a thing. Re #85
Diffstat (limited to 'tests/util.py')
-rw-r--r-- | tests/util.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/util.py b/tests/util.py new file mode 100644 index 00000000..2e0be087 --- /dev/null +++ b/tests/util.py @@ -0,0 +1,10 @@ +import unittest + + +class ParamikoTest(unittest.TestCase): + # for Python 2.3 and below + if not hasattr(unittest.TestCase, 'assertTrue'): + assertTrue = unittest.TestCase.failUnless + if not hasattr(unittest.TestCase, 'assertFalse'): + assertFalse = unittest.TestCase.failIf + |