def test_convert_withmissingsuffix(self): entry = om.Entry('custom_missing.int', value=10, parent=self.root) om.flush(entry) new_path = entry.path.copy(suffix='string') entry = om.convert(new_path.as_str) self.assertEquals(entry.value, 10)
def test_convert(self): """contert() is a shorthand for creating location and entry sep.""" entry = om.Entry('custom.int', value=10, parent=self.root) om.flush(entry) entry = om.convert(entry.path.as_str) self.assertEquals(entry.value, 10)