def save(self, saveloc='.', refs=None, overwrite=True): return GnomeId.save(self, saveloc=saveloc, refs=refs, overwrite=overwrite)
def test_deepcopy(): go = GnomeId() go_c = copy.deepcopy(go) assert go.id != go_c.id assert go is not go_c
def _attach_default_refs(self, ref_dict): for i in self.initializers: i._attach_default_refs(ref_dict) return GnomeId._attach_default_refs(self, ref_dict)
def test_exceptions(): with pytest.raises(AttributeError): go = GnomeId() print '\n id exists: {0}'.format(go.id) # calls getter, assigns an id go.id = uuid1()