Skip to content

Instantly share code, notes, and snippets.

@wilig
Forked from veriojon/gist:674700
Created November 12, 2010 21:35
Show Gist options
  • Save wilig/674728 to your computer and use it in GitHub Desktop.
Save wilig/674728 to your computer and use it in GitHub Desktop.
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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment