Skip to content

Commit 775fc4a

Browse files
author
jaseg
committed
Add test for dict-valued properties
1 parent f4086d4 commit 775fc4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_mpv.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ def test_property_decoding_multi(self):
210210
# See comment in test_property_decoding_invalid_utf8
211211
self.m.osd.alang
212212

213+
def test_dict_valued_property(self):
214+
nasty_stuff = '\xe2\x80\x8e Mozilla/5.0 Foobar \xe2\x80\x8e \xe2\x80\x81'
215+
self.m.ytdl_raw_options = {'user-agent': nasty_stuff}
216+
self.assertEqual(self.m.ytdl_raw_options, {'user-agent': nasty_stuff})
217+
213218
def test_option_read(self):
214219
self.m.loop = 'inf'
215220
self.m.play(TESTVID)

0 commit comments

Comments
 (0)