diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-07-02 11:55:26 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-07-02 11:55:26 -0400 |
commit | 1bc7b7b3dd81a74d4be2bc0c4e95ba8d29dc58d9 (patch) | |
tree | 06320a0df20808e3dc3bbd446c236862f6ed5054 | |
parent | b487b362c4c93cc90f0ad783040679ac2cebfdd9 (diff) | |
download | external_python_setuptools-1bc7b7b3dd81a74d4be2bc0c4e95ba8d29dc58d9.tar.gz external_python_setuptools-1bc7b7b3dd81a74d4be2bc0c4e95ba8d29dc58d9.tar.bz2 external_python_setuptools-1bc7b7b3dd81a74d4be2bc0c4e95ba8d29dc58d9.zip |
Issue #30: Added test for get_cache_path (but it doesn't yet get run)
-rw-r--r-- | CHANGES.txt | 1 | ||||
-rw-r--r-- | tests/test_pkg_resources.py | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 2ea4ef42..b9a9e9f0 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -7,6 +7,7 @@ CHANGES ----- * Distribute #375: Repair AttributeError created in last release (redo). +* Issue #30: Added test for get_cache_path. ----- 0.7.6 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 |