def test_actor_not_contains_str_gives_correct_json_representation(): _filter = Actor.not_contains("test") expected = NOT_CONTAINS.format("actor", "test") assert str(_filter) == expected
def test_actor_eq_str_gives_correct_json_representation(): _filter = Actor.eq("test.testerson") expected = IS.format("actor", "test.testerson") assert str(_filter) == expected
def test_actor_not_in_str_gives_correct_json_representation(): items = ["test.testerson", "flag.flagerson", "mock.mockerson"] _filter = Actor.not_in(items) expected = NOT_IN.format("actor", *sorted(items)) assert str(_filter) == expected