Beispiel #1
0
 def test_unpack_3(self):
     """Key with no regex or repetition pattern specified."""
     key = ('item name', str)
     assert lws.parse_schema_key(key) == (str, '.*', '')
Beispiel #2
0
 def test_unpack_1(self):
     """Ordinary key."""
     key = ('item name', str, r'name', '+')
     assert lws.parse_schema_key(key) == (str, 'name', '+')