Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sharedshelf.tests import *
- from sharedshelf.lib import imatacache
- class TestImataCache(TestCase):
- def test_adding_value_to_cache(self):
- cache = imatacache.ImataCache()
- myvalue = 'bar'
- key = cache.add(myvalue)
- self.assertEqual(myvalue, cache.get(key))
Add Comment
Please, Sign In to add comment