[vlc-commits] Adjust unit tests about get_mrl
Olivier Aubert
git at videolan.org
Fri Apr 27 16:48:14 CEST 2012
vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Fri Apr 27 16:45:51 2012 +0200| [2090abf75d257c093fe325efcb17aa8c4d555b6f] | committer: Olivier Aubert
Adjust unit tests about get_mrl
When setting a local path, get_mrl will return a URLified version.
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=2090abf75d257c093fe325efcb17aa8c4d555b6f
---
test.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/test.py b/test.py
index 8abbd81..889918d 100755
--- a/test.py
+++ b/test.py
@@ -67,24 +67,24 @@ class TestVLCAPI(unittest.TestCase):
mrl='/tmp/foo.avi'
i=vlc.Instance()
m=i.media_new(mrl)
- self.assertEqual(m.get_mrl(), mrl)
+ self.assertEqual(m.get_mrl(), 'file://' + mrl)
def test_wrapper_media(self):
mrl = '/tmp/foo.avi'
m = vlc.Media(mrl)
- self.assertEqual(m.get_mrl(), mrl)
+ self.assertEqual(m.get_mrl(), 'file://' + mrl)
def test_wrapper_medialist(self):
mrl1 = '/tmp/foo.avi'
mrl2 = '/tmp/bar.avi'
l = vlc.MediaList( [mrl1, mrl2] )
- self.assertEqual(l[1].get_mrl(), mrl2)
+ self.assertEqual(l[1].get_mrl(), 'file://' + mrl2)
def test_libvlc_player(self):
mrl='/tmp/foo.avi'
i=vlc.Instance()
p=i.media_player_new(mrl)
- self.assertEqual(p.get_media().get_mrl(), mrl)
+ self.assertEqual(p.get_media().get_mrl(), 'file://' + mrl)
def test_libvlc_none_object(self):
i=vlc.Instance()
More information about the vlc-commits
mailing list