File: test_cbsnews.py

package info (click to toggle)
streamlink 8.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,608 kB
  • sloc: python: 51,763; sh: 184; makefile: 152
file content (26 lines) | stat: -rw-r--r-- 918 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from streamlink.plugins.cbsnews import CBSNews
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlCBSNews(PluginCanHandleUrl):
    __plugin__ = CBSNews

    should_match = [
        "https://cbsnews.com/live",
        "https://cbsnews.com/live/cbs-sports-hq",
        "https://cbsnews.com/sanfrancisco/live",
        "https://cbsnews.com/live/",
        "https://cbsnews.com/live/cbs-sports-hq/",
        "https://cbsnews.com/sanfrancisco/live/",
        "https://www.cbsnews.com/live/",
        "https://www.cbsnews.com/live/cbs-sports-hq/",
        "https://www.cbsnews.com/sanfrancisco/live/",
        "https://www.cbsnews.com/live/#x",
        "https://www.cbsnews.com/live/cbs-sports-hq/#x",
        "https://www.cbsnews.com/sanfrancisco/live/#x",
    ]

    should_not_match = [
        "https://www.cbsnews.com/feature/election-2020/",
        "https://www.cbsnews.com/48-hours/",
    ]