def METHOD_NAME(
    default_rules_collection: RulesCollection,
    test_file: str,
    failures: int,
) -> None:
    """Test rule matches."""
    results = Runner(test_file, rules=default_rules_collection).run()
    assert len(results) == failures
    for result in results:
        assert result.rule.id == "key-order"