]>
Commit | Line | Data |
---|---|---|
d65a1dcf JN |
1 | import unittest |
2 | ||
3 | import lib | |
4 | ||
5 | suite "Playing direct links": | |
6 | ||
7 | test "sanitize URL": | |
8 | # give up and stop if this fails | |
9 | let expected = "https://www.youtube.com/watch?v=QOEMv0S8AcA" | |
10 | check(sanitizeURL("https://youtu.be/QOEMv0S8AcA") == expected) | |
11 | check(sanitizeURL("https://www.youtube.com/watch\\?v\\=QOEMv0S8AcA") == expected) |