acf95444dfa728f7dd3b5697ffbc52073a3f061b
[youtube-dl] / test / test_import.py
1 import unittest
2
3 import sys
4 import os.path
5 import subprocess
6
7 class TestImport(unittest.TestCase):
8     def test_import(self):
9         rootDir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
10         subprocess.check_call([sys.executable, '-c', 'import youtube_dl'], cwd=rootDir)
11
12 if __name__ == '__main__':
13     unittest.main()