File: test_rtvs.py

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


class TestPluginCanHandleUrlRtvs(PluginCanHandleUrl):
    __plugin__ = Rtvs

    should_match = [
        "https://www.rtvs.sk/televizia/live-1",
        "https://www.rtvs.sk/televizia/live-2",
        "https://www.rtvs.sk/televizia/live-3",
        "https://www.rtvs.sk/televizia/live-o",
        "https://www.rtvs.sk/televizia/live-rtvs",
        "https://www.rtvs.sk/televizia/live-nr-sr",
        "https://www.rtvs.sk/televizia/sport",
    ]

    should_not_match = [
        "http://www.rtvs.sk/",
        "http://www.rtvs.sk/televizia/archiv",
        "http://www.rtvs.sk/televizia/program",
    ]