tests: Add test for multi-valued property-mapped options

This commit is contained in:
jaseg 2017-07-03 22:22:03 +02:00
parent a80f638732
commit 3b6a29b8ae

View file

@ -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):