Skip to content

Instantly share code, notes, and snippets.

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