Guest User

Untitled

a guest
Jun 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. from sharedshelf.tests import *
  2. from sharedshelf.lib import imatacache
  3.  
  4. class TestImataCache(TestCase):
  5.  
  6. def test_adding_value_to_cache(self):
  7. cache = imatacache.ImataCache()
  8. myvalue = 'bar'
  9. key = cache.add(myvalue)
  10. self.assertEqual(myvalue, cache.get(key))
Add Comment
Please, Sign In to add comment