コード例 #1
0
 def test_can_handle_url(self):
     # should match
     self.assertTrue(MPEGDASH.can_handle_url("http://example.com/foo.mpd"))
     self.assertTrue(
         MPEGDASH.can_handle_url("dash://http://www.testing.cat/directe"))
     self.assertTrue(
         MPEGDASH.can_handle_url("dash://https://www.testing.cat/directe"))
コード例 #2
0
ファイル: test_dash.py プロジェクト: objcguy/streamlink
 def test_can_handle_url_negative(self):
     # shouldn't match
     self.assertFalse(MPEGDASH.can_handle_url("http://www.tvcatchup.com/"))
     self.assertFalse(MPEGDASH.can_handle_url("http://www.youtube.com/"))
コード例 #3
0
ファイル: test_dash.py プロジェクト: sheldon0531/streamlink
 def test_can_handle_url_negative(self):
     # shouldn't match
     self.assertFalse(MPEGDASH.can_handle_url("http://www.tvcatchup.com/"))
     self.assertFalse(MPEGDASH.can_handle_url("http://www.youtube.com/"))
コード例 #4
0
ファイル: test_dash.py プロジェクト: sheldon0531/streamlink
 def test_can_handle_url(self):
     # should match
     self.assertTrue(MPEGDASH.can_handle_url("http://example.com/foo.mpd"))
     self.assertTrue(MPEGDASH.can_handle_url("dash://http://www.testing.cat/directe"))
     self.assertTrue(MPEGDASH.can_handle_url("dash://https://www.testing.cat/directe"))