def setUp(self):
     """Create a nested model for testing"""
     helper.TmpPathTestCase.setUp(self)
     self.nested = NestedModel()
     self.nested_observer = ModelObserver(self.nested)
     path = self.test_path('test.data')
     # save & reconstitute
     serializer.save(self.nested, path)
     self.clone = serializer.load(path)
Exemple #2
0
 def save():
     model = SettingsManager.settings()
     serializer.save(model, SettingsManager._rcfile)