def METHOD_NAME():
    test_dataframe = DataFrame({"foo": [1, 2, 3, 4, 5, 6]})
    assert RowCountConstraint(6).validate(test_dataframe) is None
    with pytest.raises(ConstraintViolationException):
        RowCountConstraint(5).validate(test_dataframe)
    assert (
        RowCountConstraint(5, error_tolerance=1).validate(DataFrame({"foo": [1, 2, 3, 4]})) is None
    )
    with pytest.raises(ConstraintViolationException):
        assert RowCountConstraint(5, error_tolerance=1).validate(DataFrame({"foo": [1, 2]}))
    assert (
        RowCountConstraint(5, error_tolerance=1).validate(DataFrame({"foo": [1, 2, 3, 4, 5, 6]}))
        is None
    )
    with pytest.raises(ConstraintViolationException):
        assert RowCountConstraint(5, error_tolerance=1).validate(
            DataFrame({"foo": [1, 2, 3, 4, 5, 6, 7]})
        )