Files
whipper-gui/morituri/test/test_common_cache.py
Thomas Vander Stichele 306e6f2ad7 * morituri/common/cache.py:
* morituri/rip/debug.py:
	* morituri/test/test_common_cache.py:
	  Add rip debug resultcache list to list cached results.
2012-12-02 17:27:15 +00:00

24 lines
636 B
Python

# -*- Mode: Python; test-case-name: morituri.test.test_common_cache -*-
# vi:si:et:sw=4:sts=4:ts=4
import os
from morituri.common import cache
from morituri.test import common as tcommon
class ResultCacheTestCase(tcommon.TestCase):
def setUp(self):
self.cache = cache.ResultCache(
os.path.join(os.path.dirname(__file__), 'cache', 'result'))
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'])