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 setUp(self):
- super(TestImataCache, self).setUp()
- self.data.setup()
- def tearDown(self):
- self.data.teardown()
- super(TestImataCache, self).tearDown()
- def add_test(self):
- test = imatacache.ImataCache()
- myvalue = 'bar'
- key = test.add(myvalue)
- if self.get(key) == myvalue:
- assert(1)
Add Comment
Please, Sign In to add comment