Guest User

Untitled

a guest
Jun 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. from sharedshelf.tests import *
  2. from sharedshelf.lib import imatacache
  3.  
  4. class TestImataCache(TestCase):
  5.  
  6. def setUp(self):
  7. super(TestImataCache, self).setUp()
  8. self.data.setup()
  9.  
  10. def tearDown(self):
  11. self.data.teardown()
  12. super(TestImataCache, self).tearDown()
  13.  
  14. def add_test(self):
  15. test = imatacache.ImataCache()
  16. myvalue = 'bar'
  17. key = test.add(myvalue)
  18. if self.get(key) == myvalue:
  19. assert(1)
Add Comment
Please, Sign In to add comment