1. PyPA
  2. Python Packaging Authority Projects
  3. setuptools

Commits

Jason R. Coombs  committed 51ecba1

Issue #30: Added test for get_cache_path (but it doesn't yet get run)

  • Participants
  • Parent commits a3cb919
  • Branches default

Comments (0)

Files changed (2)

File CHANGES.txt

View file
 -----
 
 * Distribute #375: Repair AttributeError created in last release (redo).
+* Issue #30: Added test for get_cache_path.
 
 -----
 0.7.6

File tests/test_pkg_resources.py

View file
 		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