浏览代码

test import

Philipp Hagemeister 12 年之前
父节点
当前提交
be0f77d075
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      test/test_import.py

+ 13 - 0
test/test_import.py

@@ -0,0 +1,13 @@
+import unittest
+
+import sys
+import os.path
+import subprocess
+
+class TestImport(unittest.TestCase):
+	def test_import(self):
+		rootDir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+		subprocess.check_call([sys.executable, '-c', 'import youtube_dl'], cwd=rootDir)
+
+if __name__ == '__main__':
+	unittest.main()