Allow creation of ListSchema from other Schemas

This commit is contained in:
Jason Paryani
2014-11-19 02:19:21 -08:00
parent 0f0ced971d
commit 4fb74372f2
3 changed files with 37 additions and 0 deletions

View File

@@ -18,3 +18,7 @@ def test_list_schema(addressbook):
personType = peopleField.schema.elementType
assert personType.node.id == addressbook.Person.schema.node.id
personListSchema = capnp.ListSchema(addressbook.Person)
assert personListSchema.elementType.node.id == addressbook.Person.schema.node.id