File: test_drdk.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 (18 lines) | stat: -rw-r--r-- 539 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from streamlink.plugins.drdk import DRDK
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlDRDK(PluginCanHandleUrl):
    __plugin__ = DRDK

    should_match = [
        "https://www.dr.dk/drtv/kanal/dr1_20875",
        "https://www.dr.dk/drtv/kanal/dr2_20876",
        "https://www.dr.dk/drtv/kanal/dr-ramasjang_20892",
    ]

    should_not_match = [
        "https://www.dr.dk/tv/live/dr1",
        "https://www.dr.dk/tv/live/dr2",
        "https://www.dr.dk/tv/se/matador/matador-saeson-3/matador-15-24",
    ]