summaryrefslogtreecommitdiff
path: root/mpv-test.py
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2017-07-03 22:22:03 +0200
committerjaseg <code@jaseg.net>2017-07-03 22:22:03 +0200
commit3b6a29b8ae2b4bd1ad6922135a293debf93ff293 (patch)
tree853bccbd3e5eef9a1bd0e5f87db3e2da9c2dc71c /mpv-test.py
parenta80f638732cdcd6837b3a8818ab7822993bd42b4 (diff)
downloadpython-mpv-3b6a29b8ae2b4bd1ad6922135a293debf93ff293.tar.gz
python-mpv-3b6a29b8ae2b4bd1ad6922135a293debf93ff293.tar.bz2
python-mpv-3b6a29b8ae2b4bd1ad6922135a293debf93ff293.zip
tests: Add test for multi-valued property-mapped options
Diffstat (limited to 'mpv-test.py')
-rwxr-xr-xmpv-test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mpv-test.py b/mpv-test.py
index 613280a..e607071 100755
--- a/mpv-test.py
+++ b/mpv-test.py
@@ -134,6 +134,10 @@ class TestProperties(unittest.TestCase):
mpv.ErrorCode.PROPERTY_UNAVAILABLE, mpv.ErrorCode.PROPERTY_NOT_FOUND, mpv.ErrorCode.PROPERTY_ERROR]):
self.m[name]
+ def test_multivalued_option(self):
+ self.m['external-file'] = ['test.webm', b'test.webm']
+ self.assertEqual(self.m['external-file'], [b'test.webm', b'test.webm'])
+
class ObservePropertyTest(unittest.TestCase):
def test_observe_property(self):