summaryrefslogtreecommitdiffhomepage
path: root/tests/util.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2012-10-15 13:33:16 -0700
committerJeff Forcier <jeff@bitprophet.org>2012-10-15 13:33:16 -0700
commit786920a3208fa335f334689d65b7302e9d52a568 (patch)
treedca1487fe19f6bdbff1fc965521e94d1176a099b /tests/util.py
parent78815afe9db56846279ceee5af3863c0ee16e9b8 (diff)
parentdfb45dec7fac59559009cac16d9b354ef4890de3 (diff)
Merge branch '1.8'
Diffstat (limited to 'tests/util.py')
-rw-r--r--tests/util.py10
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
+