コード例 #1
0
def test_file_category_not_in_str_gives_correct_json_representation():
    items = [FileCategory.EXECUTABLE, FileCategory.IMAGE, FileCategory.PDF]
    _filter = FileCategory.not_in(items)
    expected = NOT_IN.format("fileCategory", *items)
    assert str(_filter) == expected
コード例 #2
0
def test_file_category_not_in_str_gives_correct_json_representation():
    items = ["category1", "category2", "category3"]
    _filter = FileCategory.not_in(items)
    expected = NOT_IN.format("fileCategory", *items)
    assert str(_filter) == expected