diff options
Diffstat (limited to 'tests/test_pkg_resources.py')
-rw-r--r-- | tests/test_pkg_resources.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_pkg_resources.py b/tests/test_pkg_resources.py index 7009b4ab..6e4a9348 100644 --- a/tests/test_pkg_resources.py +++ b/tests/test_pkg_resources.py @@ -59,3 +59,11 @@ class TestZipProvider(object): f = open(filename) assert f.read() == 'hello, world!' manager.cleanup_resources() + +class TestResourceManager(object): + def test_get_cache_path(self): + mgr = pkg_resources.ResourceManager() + path = mgr.get_cache_path('foo') + type_ = str(type(path)) + message = "Unexpected type from get_cache_path: " + type_ + assert isinstance(path, (unicode, str)), message |