summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2024-07-16 11:10:36 +0200
committerjaseg <git@jaseg.de>2024-07-16 11:10:36 +0200
commit775fc4a868fa8a84b6e1830a42cba4847a72e961 (patch)
treeffbb5d8f62523ec36b8b4aab8690065da3fc2e98 /tests
parentf4086d4bb44603dcbaac51a162b280f760cbde2c (diff)
downloadpython-mpv-775fc4a868fa8a84b6e1830a42cba4847a72e961.tar.gz
python-mpv-775fc4a868fa8a84b6e1830a42cba4847a72e961.tar.bz2
python-mpv-775fc4a868fa8a84b6e1830a42cba4847a72e961.zip
Add test for dict-valued properties
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_mpv.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_mpv.py b/tests/test_mpv.py
index 6a962f0..a59ade1 100755
--- a/tests/test_mpv.py
+++ b/tests/test_mpv.py
@@ -210,6 +210,11 @@ class TestProperties(MpvTestCase):
# 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)