Created
November 12, 2010 21:16
-
-
Save veriojon/674700 to your computer and use it in GitHub Desktop.
building the tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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