tests: Add test for multi-valued property-mapped options
This commit is contained in:
parent
a80f638732
commit
3b6a29b8ae
1 changed files with 4 additions and 0 deletions
|
|
@ -134,6 +134,10 @@ class TestProperties(unittest.TestCase):
|
||||||
mpv.ErrorCode.PROPERTY_UNAVAILABLE, mpv.ErrorCode.PROPERTY_NOT_FOUND, mpv.ErrorCode.PROPERTY_ERROR]):
|
mpv.ErrorCode.PROPERTY_UNAVAILABLE, mpv.ErrorCode.PROPERTY_NOT_FOUND, mpv.ErrorCode.PROPERTY_ERROR]):
|
||||||
self.m[name]
|
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):
|
class ObservePropertyTest(unittest.TestCase):
|
||||||
def test_observe_property(self):
|
def test_observe_property(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue