diff options
Diffstat (limited to 'tests/util.py')
-rw-r--r-- | tests/util.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/util.py b/tests/util.py index 2e0be087..b546a7e1 100644 --- a/tests/util.py +++ b/tests/util.py @@ -1,10 +1,7 @@ -import unittest +import os +root_path = os.path.dirname(os.path.realpath(__file__)) -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 +def test_path(filename): + return os.path.join(root_path, filename) |