Example #1
0
 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 })
Example #2
0
 def tearDown(self):
     TestAdapter.reset()
 def tearDown(self):
     self.cache.empty()
     TestAdapter.reset()