def test_uid_property(): prop = UniqueIdProperty() prop.name = 'uid' prop.owner = object() myuid = prop.default_value() assert len(myuid) class CheckMyId(StructuredNode): uid = UniqueIdProperty() cmid = CheckMyId().save() assert len(cmid.uid)
class CheckMyId(StructuredNode): uid = UniqueIdProperty()
class TestNode(StructuredNode): uid = UniqueIdProperty() name_ = StringProperty(db_property="name", required=True)