You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
322 B

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