* morituri/common/cache.py:

* morituri/rip/debug.py:
	* morituri/test/test_common_cache.py:
	  Add rip debug resultcache list to list cached results.
This commit is contained in:
Thomas Vander Stichele
2012-12-02 17:27:15 +00:00
parent b86febb3b1
commit 306e6f2ad7
4 changed files with 50 additions and 3 deletions

View File

@@ -14,6 +14,10 @@ class ResultCacheTestCase(tcommon.TestCase):
self.cache = cache.ResultCache(
os.path.join(os.path.dirname(__file__), 'cache', 'result'))
def testGet(self):
def testGetResult(self):
result = self.cache.getRipResult('fe105a11')
self.assertEquals(result.object.title, "The Writing's on the Wall")
def testGetIds(self):
ids = self.cache.getIds()
self.assertEquals(ids, ['fe105a11'])