예제 #1
0
 class ChildModel(base.Model):
     root_tag = 'child'
     leaf1 = base.String('leaf1')
     leaf2 = base.String('leaf2')
예제 #2
0
 class ChildModel(base.Model):
     root_tag = None
     leaf1 = base.String('tag1')
     leaf2 = base.String('tag2')
예제 #3
0
 class MyModel(base.Model):
     root_tag = 'root'
     prop = base.String('tag', default='x')
예제 #4
0
 class MyModel(base.Model):
     root_tag = 'root'
     prop1 = base.String('tag1')
     prop2 = base.String('tag2')
예제 #5
0
 class MyModel(base.Model):
     root_tag = 'root'
     prop = base.String('tag')
예제 #6
0
def test_string():
    f = base.String('tag')
    assert 'String' in repr(f)