def test_is_not_tuple(self): assert utils.is_schema([]) is False
def test_if_is_tuple(self): assert utils.is_schema(('a', 'b')) is True
def test_is_delayed(self): schema = delay(lambda x: True) assert utils.is_schema(schema) is True
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
def test_if_is_tuple(self): assert utils.is_schema(("a", "b")) is True