Source

parsehelp / parsehelp / core / test.py

# -*- coding: utf-8 -*-

from os.path import abspath, dirname, join
import unittest

TESTDATA = (
    join(dirname(dirname(dirname(abspath(__file__)))),
         'tests',
         'testdata'))


class BaseTestCase(unittest.TestCase):
    def assert_equals(self, *args, **kw):
        return self.assertEquals(*args, **kw)

    def assert_in(self, *args, **kw):
        return self.assertIn(*args, **kw)

    def assert_is(self, *args, **kw):
        return self.assertIs(*args, **kw)