diff --git a/test/plugins/test_lastgenre.py b/test/plugins/test_lastgenre.py index caef1b11ed..17107a65c9 100644 --- a/test/plugins/test_lastgenre.py +++ b/test/plugins/test_lastgenre.py @@ -378,6 +378,21 @@ def test_sort_by_depth(self): }, ("Allowed Genre", "original"), ), + # 13 - test with a null charachter as separator + ( + { + "force": True, + "keep_allowed": True, + "source": "album", + "whitelist": True, + "separator": "\u0000" + }, + "allowed genre", + { + "album": "another allowed genre", + }, + ("allowed genre\u0000another allowed genre", "keep + album"), + ), ], ) def test_get_genre(config_values, item_genre, mock_genres, expected_result):