def test_rule_name_not_in_str_gives_correct_json_representation(): items = ["rule 1", "rule 2", "rule 3"] _filter = RuleName.not_in(items) expected = NOT_IN.format("name", *sorted(items)) assert str(_filter) == expected
def test_rule_name_not_contains_str_gives_correct_json_representation(): _filter = RuleName.not_contains("test") expected = NOT_CONTAINS.format("name", "test") assert str(_filter) == expected
def test_rule_name_not_eq_str_gives_correct_json_representation(): _filter = RuleName.not_eq("Departing Employee") expected = IS_NOT.format("name", "Departing Employee") assert str(_filter) == expected