def test_cardinality_in_item_should_override_prop_candinality(self): self.assertEqual([0, 1], schema.get_cardinality('Person', 'url'))
def test_prop_cardinality(self): self.assertEqual([1, 1], schema.get_cardinality('Thing', 'url'))
def test_default_cardinality(self): self.assertEqual([0, 0], schema.get_cardinality('Person', 'children'))