]>
Commit | Line | Data |
---|---|---|
be0f77d0 PH |
1 | import unittest |
2 | ||
3 | import sys | |
4 | import os.path | |
5 | import subprocess | |
6 | ||
7 | class TestImport(unittest.TestCase): | |
59ae15a5 PH |
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) | |
be0f77d0 PH |
11 | |
12 | if __name__ == '__main__': | |
59ae15a5 | 13 | unittest.main() |