File: test_stv.py

package info (click to toggle)
streamlink 1.0.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,588 kB
  • sloc: python: 31,121; makefile: 141; sh: 93
file content (12 lines) | stat: -rw-r--r-- 397 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
import unittest

from streamlink.plugins.stv import STV


class TestPluginSTV(unittest.TestCase):
    def test_can_handle_url(self):
        self.assertTrue(STV.can_handle_url('https://player.stv.tv/live'))
        self.assertTrue(STV.can_handle_url('http://player.stv.tv/live'))

    def test_can_handle_url_negative(self):
        self.assertFalse(STV.can_handle_url('http://example.com/live'))