paramiko/tests/util.py

18 lines
432 B
Python
Raw Permalink Normal View History

2013-10-30 19:19:30 -04:00
import os
2012-10-15 16:21:58 -04:00
import unittest
root_path = os.path.dirname(os.path.realpath(__file__))
2012-10-15 16:21:58 -04:00
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)