* morituri/common/cache.py (added):
* morituri/test/cache (added): * morituri/test/cache/result (added): * morituri/test/cache/result/fe105a11.pickle (added): * morituri/test/test_common_cache.py (added): * morituri/common/Makefile.am: * morituri/common/program.py: * morituri/test/Makefile.am: Extract ResultCache object into separate file.
This commit is contained in:
19
morituri/test/test_common_cache.py
Normal file
19
morituri/test/test_common_cache.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# -*- 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 testGet(self):
|
||||
result = self.cache.getRipResult('fe105a11')
|
||||
self.assertEquals(result.object.title, "The Writing's on the Wall")
|
||||
Reference in New Issue
Block a user