class ChildModel(base.Model): root_tag = 'child' leaf1 = base.String('leaf1') leaf2 = base.String('leaf2')
class ChildModel(base.Model): root_tag = None leaf1 = base.String('tag1') leaf2 = base.String('tag2')
class MyModel(base.Model): root_tag = 'root' prop = base.String('tag', default='x')
class MyModel(base.Model): root_tag = 'root' prop1 = base.String('tag1') prop2 = base.String('tag2')
class MyModel(base.Model): root_tag = 'root' prop = base.String('tag')
def test_string(): f = base.String('tag') assert 'String' in repr(f)