class IndexArray(StructuredNode): ai = ArrayProperty(unique_index=True)
class ArrayProps(StructuredNode): uid = StringProperty(unique_index=True) untyped_arr = ArrayProperty() typed_arr = ArrayProperty(IntegerProperty())
def test_illegal_array_base_prop_raises(): with raises(ValueError): ArrayProperty(StringProperty(index=True))