summaryrefslogtreecommitdiff
path: root/mpv-test.py
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2016-08-20 09:54:53 +0200
committerjaseg <code@jaseg.net>2016-08-20 09:54:53 +0200
commit669c4bbfeca57de862ce470d20122637cf8df2ff (patch)
tree41c6005d25c71478e5acddae21bb9953dc674dc5 /mpv-test.py
parentbe8d6897eb26873edd4a39be7887515ed07f7ec3 (diff)
downloadpython-mpv-669c4bbfeca57de862ce470d20122637cf8df2ff.tar.gz
python-mpv-669c4bbfeca57de862ce470d20122637cf8df2ff.tar.bz2
python-mpv-669c4bbfeca57de862ce470d20122637cf8df2ff.zip
BREAKING :boom: Improve property handling
Diffstat (limited to 'mpv-test.py')
-rwxr-xr-xmpv-test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mpv-test.py b/mpv-test.py
index e5a51f2..14d5b6d 100755
--- a/mpv-test.py
+++ b/mpv-test.py
@@ -139,12 +139,12 @@ class ObservePropertyTest(unittest.TestCase):
self.assertEqual(m.loop, 'inf')
time.sleep(0.02)
- m.unobserve_property(handler)
+ m.unobserve_property('loop', handler)
m.loop = 'no'
m.loop = 'inf'
m.terminate() # needed for synchronization of event thread
- handler.assert_has_calls([mock.call('loop', 'no'), mock.call('loop', 'inf')])
+ handler.assert_has_calls([mock.call('no'), mock.call('inf')])
class TestLifecycle(unittest.TestCase):
@@ -197,7 +197,7 @@ class TestLifecycle(unittest.TestCase):
m.wait_for_playback()
del m
handler.assert_has_calls([
- mock.call('info', 'cplayer', 'Playing: test.webm'),
+ mock.call('info', 'cplayer', 'Playing: ./test.webm'),
mock.call('info', 'cplayer', ' Video --vid=1 (*) (vp8)'),
mock.call('fatal', 'cplayer', 'No video or audio streams selected.')])