diff options
author | jaseg <git@jaseg.net> | 2017-05-10 14:05:10 +0200 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2017-05-10 14:05:10 +0200 |
commit | 303eedbb3b2fe8ddd0229c49d5d961f06fd39208 (patch) | |
tree | 355fe359678c3f9ee83de15deb1764d3aec2f09c /mpv-test.py | |
parent | 7a378544d5aff55ce9cf1adae3180b6951efa33e (diff) | |
download | python-mpv-303eedbb3b2fe8ddd0229c49d5d961f06fd39208.tar.gz python-mpv-303eedbb3b2fe8ddd0229c49d5d961f06fd39208.tar.bz2 python-mpv-303eedbb3b2fe8ddd0229c49d5d961f06fd39208.zip |
Add documentation and polish handler registration
Diffstat (limited to 'mpv-test.py')
-rwxr-xr-x | mpv-test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mpv-test.py b/mpv-test.py index a7a53c6..fb1c370 100755 --- a/mpv-test.py +++ b/mpv-test.py @@ -35,7 +35,7 @@ class TestProperties(unittest.TestCase): self.assertTrue('r' in access or 'w' in access) self.assertRegex(name, '^[-0-9a-z]+$') # Types and MpvFormat values - self.assertIn(ptype, [bool, int, float, str, bytes, mpv.commalist] + list(range(10))) + self.assertIn(ptype, [bool, int, float, str, bytes, mpv._commalist] + list(range(10))) def test_completeness(self): ledir = dir(self.m) @@ -132,6 +132,7 @@ class TestProperties(unittest.TestCase): class ObservePropertyTest(unittest.TestCase): def test_observe_property(self): handler = mock.Mock() + handler.observed_mpv_properties = [] m = mpv.MPV() m.loop = 'inf' |