def setUp(self): self.path = tempfile.mkdtemp(prefix='unitest_usermod') #Read the full SM self.sm_path = import_ufo.find_ufo_path('sm') self.base_model = usermod.UFOModel(self.sm_path)
def setUp(self): self.path = tempfile.mkdtemp(prefix='unitest_usermod') #Read the full SM self.sm_path = import_ufo.find_ufo_path('sm') self.base_model = usermod.UFOModel(self.sm_path) self.mymodel = Model() for key in self.mymodel.__dict__: obj = getattr(self.mymodel, key) for o in obj[:]: obj.pop()