Пример #1
0
 def setup_method(self, method):
     super(ObjectTankTestCase, self).setup_method(method)
     context.objects = None
     self.object_tank = ObjectsTank()
Пример #2
0
 def teardown_method(self, method):
     self.object_tank = None
     context.objects = ObjectsTank()
     super(ObjectTankTestCase, self).teardown_method(method)
Пример #3
0
 def _setup_object_tank(self):
     from amplify.agent.tanks.objects import ObjectsTank
     self.objects = ObjectsTank()
     self.top_object = self.objects.root_object
     self.top_object_id = self.objects.root_id