1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-11 00:27:15 +08:00
youtube-dl/test/ci/test_tiktok.py
2020-04-20 13:40:18 +03:00

16 lines
430 B
Python

import unittest
import youtube_dl
class MyTestCase(unittest.TestCase):
def test_something(self):
url = 'https://www.tiktok.com/@danieltbraun/video/6817099671043853574'
params = {}
ydl = youtube_dl.YoutubeDL(params)
info = ydl.extract_info(url, download=False)
self.assertEquals(info['title'], "She got a face full of DUSTBIN #foryou")
if __name__ == '__main__':
unittest.main()