Esempio n. 1
0
def test_illegal_array_base_prop_raises():
    try:
        ArrayProperty(StringProperty(index=True))
    except ValueError:
        assert True
    else:
        assert False
Esempio n. 2
0
 class IndexArray(StructuredNode):
     ai = ArrayProperty(unique_index=True)
Esempio n. 3
0
def test_illegal_array_base_prop_raises():
    with raises(ValueError):
        ArrayProperty(StringProperty(index=True))
Esempio n. 4
0
class ArrayProps(StructuredNode):
    uid = StringProperty(unique_index=True)
    untyped_arr = ArrayProperty()
    typed_arr = ArrayProperty(IntegerProperty())