From dfb45dec7fac59559009cac16d9b354ef4890de3 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Mon, 15 Oct 2012 13:21:58 -0700 Subject: Refactoring: it's a thing. Re #85 --- tests/util.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/util.py (limited to 'tests/util.py') 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 + -- cgit v1.2.3