blob: 6282ac451c75d703960ff6f852e34a5d2b978978 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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()
|