def test_file_category_is_in_str_gives_correct_json_representation(): items = [FileCategory.EXECUTABLE, FileCategory.IMAGE, FileCategory.PDF] _filter = FileCategory.is_in(items) expected = IS_IN.format("fileCategory", *items) assert str(_filter) == expected
def test_file_category_is_in_str_gives_correct_json_representation(): items = ["category1", "category2", "category3"] _filter = FileCategory.is_in(items) expected = IS_IN.format("fileCategory", *items) assert str(_filter) == expected