Skip to content

Commit

Permalink
Add test for dict-valued properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jaseg committed Jul 16, 2024
1 parent f4086d4 commit 775fc4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_mpv.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ def test_property_decoding_multi(self):
# See comment in test_property_decoding_invalid_utf8
self.m.osd.alang

def test_dict_valued_property(self):
nasty_stuff = '\xe2\x80\x8e Mozilla/5.0 Foobar \xe2\x80\x8e \xe2\x80\x81'
self.m.ytdl_raw_options = {'user-agent': nasty_stuff}
self.assertEqual(self.m.ytdl_raw_options, {'user-agent': nasty_stuff})

def test_option_read(self):
self.m.loop = 'inf'
self.m.play(TESTVID)
Expand Down

0 comments on commit 775fc4a

Please sign in to comment.