import os
import sys
import unittest


class BaseTestCase(unittest.TestCase):

    test_tpl_path = os.path.join(os.path.dirname(__file__), 'test_template')

    def setUp(self):
        self._old_sys_argv = sys.argv
        sys.argv = [self._old_sys_argv[0].replace('nosetests', 'skeletor')]

    def tearDown(self):
        sys.argv = self._old_sys_argv

import os
import sys
import unittest


class BaseTestCase(unittest.TestCase):

    test_tpl_path = os.path.join(os.path.dirname(__file__), 'test_template')
    test_cfg_base_path = os.path.join(os.path.dirname(__file__),
            'test_cfgs')

    def setUp(self):
        self._old_sys_argv = sys.argv
        sys.argv = [self._old_sys_argv[0].replace('nosetests', 'skeletor')]

    def tearDown(self):
        sys.argv = self._old_sys_argv

    def _test_cfg_path(self, fname):
        return os.path.join(self.test_cfg_base_path, fname)

    @property
    def empty_cfg(self):
        return self._test_cfg_path('empty.cfg')

Set base test case to define test config file paths