Beispiel #1
0
def test_file_name_not_in_str_gives_correct_json_representation():
    items = ["fileName1", "fileName2", "fileName3"]
    _filter = FileName.not_in(items)
    expected = NOT_IN.format("fileName", *sorted(items))
    assert str(_filter) == expected
Beispiel #2
0
def test_file_name_not_exists_str_gives_correct_json_representation():
    _filter = FileName.not_exists()
    expected = NOT_EXISTS.format("fileName")
    assert str(_filter) == expected
Beispiel #3
0
def test_file_name_not_eq_str_gives_correct_json_representation():
    _filter = FileName.not_eq("test_fileName")
    expected = IS_NOT.format("fileName", "test_fileName")
    assert str(_filter) == expected
Beispiel #4
0
def test_file_name_is_in_str_gives_correct_json_representation():
    items = ["fileName", "fileName", "fileName"]
    _filter = FileName.is_in(items)
    expected = IS_IN.format("fileName", *items)
    assert str(_filter) == expected