From 303eedbb3b2fe8ddd0229c49d5d961f06fd39208 Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 10 May 2017 14:05:10 +0200 Subject: Add documentation and polish handler registration --- mpv-test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mpv-test.py') 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' -- cgit