def METHOD_NAME():
    # Arrange
    df = pd.DataFrame({'foo': ['a', 'b', np.nan, None], 'bar': [None, 'a', 'b', 'a']})
    check = PercentOfNulls().add_condition_percent_of_nulls_not_greater_than(0.01)
    # Act
    check_result = check.run(df)
    conditions_results = check.conditions_decision(check_result)
    assert_that(conditions_results, has_items(
        equal_condition_result(is_pass=False,
                               details='Found 2 columns with ratio of nulls above threshold: '
                                       '\n{\'foo\': \'50%\', \'bar\': \'25%\'}',
                               name='Percent of null values in each column is not greater than 1%')
    ))