1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
from streamlink.plugins.mixcloud import Mixcloud
from tests.plugins import PluginCanHandleUrl
class TestPluginCanHandleUrlMixcloud(PluginCanHandleUrl):
__plugin__ = Mixcloud
should_match_groups = [
("http://mixcloud.com/live/user", {"user": "user"}),
("http://www.mixcloud.com/live/user", {"user": "user"}),
("https://mixcloud.com/live/user", {"user": "user"}),
("https://www.mixcloud.com/live/user", {"user": "user"}),
("https://www.mixcloud.com/live/user/anything", {"user": "user"}),
]
should_not_match = [
"https://www.mixcloud.com/",
"https://www.mixcloud.com/live",
"https://www.mixcloud.com/live/",
"https://www.mixcloud.com/other",
]
|