update test to run with python 3.5.2

This commit is contained in:
michaelbub 2016-11-11 15:53:14 +01:00
parent 0bdc621d99
commit 28d18b7c64

View file

@ -150,8 +150,8 @@ class SmartPlaylistTest(unittest.TestCase):
spl = SmartPlaylistPlugin()
i = Mock(path=b'/tagada.mp3')
i.evaluate_template.side_effect = lambda pl, _: pl.replace('$title', 'ta:ga:da')
i.evaluate_template.side_effect = lambda pl, _: pl.replace(b'$title', b'ta:ga:da').decode()
lib = Mock()
lib.replacements = CHAR_REPLACE
lib.items.return_value = [i]