6c5d0bcc1d11506571a58654d17d156fa6b40cae
[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()