diff options
Diffstat (limited to 'tests/test_path.py')
| -rw-r--r-- | tests/test_path.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/test_path.py b/tests/test_path.py index 968739af4..f93b0ae90 100644 --- a/tests/test_path.py +++ b/tests/test_path.py @@ -11,11 +11,9 @@ class TestResourceFilename(unittest.TestCase): return resource_filename(package, name) def test_returns_path(self): - path = self._callFUT('tests', 'test_path.py') - self.assertIsInstance(path, str) - # If it's a real path, we should be able to open and read from it. - with open(path) as fh: - assert fh.read(1) + path = self._callFUT('tests.pkgs.assets', 'foo.txt') + expected = os.path.join(here, 'pkgs/assets/foo.txt') + self.assertEqual(path, expected) class TestCallerPath(unittest.TestCase): |
