Beispiel #1
0
 def test_play_mirror(self):
     FakeAddon.settings['choose_mirrors'] = '1'
     m_dialog.select.return_value = 1
     path = actions.play({'path': '/foo.mkv', 'mirrors': ['/mirr1.mkv', '/mirr2.mkv'], 'mp4': '/foo.mp4'})
     self.assertEqual(path, 'http://www.ex.ua/mirr1.mkv|Cookie=ham%3Dspam')
Beispiel #2
0
 def test_play_mp4(self):
     FakeAddon.settings['choose_mirrors'] = '2'
     path = actions.play({'path': '/foo.mkv', 'mirrors': ['/mirr1.mkv', '/mirr2.mkv'], 'mp4': '/foo.mp4'})
     self.assertEqual(path, 'http://www.ex.ua/foo.mp4|Cookie=ham%3Dspam')
Beispiel #3
0
 def test_play_path(self):
     FakeAddon.settings['choose_mirrors'] = '0'
     path = actions.play({'path': '/foo.mkv'})
     self.assertEqual(path, 'http://www.ex.ua/foo.mkv|Cookie=ham%3Dspam')