def test_sha256_not_eq_str_gives_correct_json_representation(): _filter = SHA256.not_eq("test_sha256") expected = IS_NOT.format("sha256Checksum", "test_sha256") assert str(_filter) == expected
def test_sha256_is_in_str_gives_correct_json_representation(): items = ["sha2561", "sha2562", "sha2563"] _filter = SHA256.is_in(items) expected = IS_IN.format("sha256Checksum", *sorted(items)) assert str(_filter) == expected
def test_sha256_not_exists_str_gives_correct_json_representation(): _filter = SHA256.not_exists() expected = NOT_EXISTS.format("sha256Checksum") assert str(_filter) == expected