def setUp(self): TestAdapter.reset() class Test(pyperry.Base): pass Test.attributes('id') Test.configure('read', adapter=TestAdapter) Test.configure('write', adapter=TestAdapter, foo='bar') self.Test = Test self.test = Test({ 'id': 1 })
def tearDown(self): TestAdapter.reset()
def tearDown(self): self.cache.empty() TestAdapter.reset()