aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_pkg_resources.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-07-02 12:06:51 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-07-02 12:06:51 -0400
commitd7640129c2464206fe1431411c8603e7994ca55c (patch)
treee4e92680d719026f6019331e126ae4830102fca2 /tests/test_pkg_resources.py
parent50b0b7602fcda151cbf4ddfdade6abef96c9dd3f (diff)
parent83c974c56ebc4689171913da1a6af3249b56ec6d (diff)
downloadexternal_python_setuptools-d7640129c2464206fe1431411c8603e7994ca55c.tar.gz
external_python_setuptools-d7640129c2464206fe1431411c8603e7994ca55c.tar.bz2
external_python_setuptools-d7640129c2464206fe1431411c8603e7994ca55c.zip
Merge
Diffstat (limited to 'tests/test_pkg_resources.py')
-rw-r--r--tests/test_pkg_resources.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_pkg_resources.py b/tests/test_pkg_resources.py
index b05ea44b..398f1acc 100644
--- a/tests/test_pkg_resources.py
+++ b/tests/test_pkg_resources.py
@@ -64,3 +64,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