awips2/pythonPackages/nose/functional_tests/test_selector.py
root 9f19e3f712 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

17 lines
502 B
Python
Executable file

import os
import unittest
from nose.selector import Selector, TestAddress
support = os.path.abspath(os.path.join(os.path.dirname(__file__), 'support'))
class TestTestAddress(unittest.TestCase):
def test_module_filename(self):
wd = os.path.join(support, 'package2')
addr = TestAddress('test_pak.test_mod', workingDir=wd)
self.assertEqual(addr.filename,
os.path.join(wd, 'test_pak', 'test_mod.py'))
if __name__ == '__main__':
unittest.main()