def test_validate_ruleset(): assert v.is_valid([], ruleset_schema) assert v.is_valid(ruleset, ruleset_schema)
def test_validate_rule(): for rule in ruleset: assert v.is_valid(rule, rule_schema)