aboutsummaryrefslogtreecommitdiff
path: root/tests/util.py
blob: 66d2696cd0322f45bbcf62957bd4006333f4d169 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
import unittest

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)