Beispiel #1
0
 def test_is_not_tuple(self):
     assert utils.is_schema([]) is False
Beispiel #2
0
 def test_if_is_tuple(self):
     assert utils.is_schema(('a', 'b')) is True
Beispiel #3
0
 def test_is_delayed(self):
     schema = delay(lambda x: True)
     assert utils.is_schema(schema) is True
Beispiel #4
0
 def __init__(self, *schemas):
     for schema in schemas:
         if not is_schema(schema):
             raise TypeError("got a non schema argument: %s" % safe_repr(schema))
     self.schemas = schemas
Beispiel #5
0
 def test_is_not_tuple(self):
     assert utils.is_schema([]) is False
Beispiel #6
0
 def test_is_delayed(self):
     schema = delay(lambda x: True)
     assert utils.is_schema(schema) is True
Beispiel #7
0
 def test_if_is_tuple(self):
     assert utils.is_schema(("a", "b")) is True
Beispiel #8
0
 def test_if_is_tuple(self):
     assert utils.is_schema(('a', 'b')) is True