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