| Tor Norbye | 3a2425a | 2013-11-04 10:16:08 -0800 | [diff] [blame] | 1 | __author__ = 'Dmitry.Trofimov' |
| 2 | |
| 3 | import unittest |
| Tor Norbye | 8668e1b | 2013-12-20 09:14:04 -0800 | [diff] [blame^] | 4 | import os |
| 5 | |
| 6 | test_data_path = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', '..', '..', 'python', 'testData', 'debug')) |
| Tor Norbye | 3a2425a | 2013-11-04 10:16:08 -0800 | [diff] [blame] | 7 | |
| 8 | class PyDevTestCase(unittest.TestCase): |
| 9 | def testZipFileExits(self): |
| 10 | from pydevd_file_utils import exists |
| Tor Norbye | 8668e1b | 2013-12-20 09:14:04 -0800 | [diff] [blame^] | 11 | |
| 12 | self.assertTrue(exists(test_data_path +'/zipped_lib.zip/zipped_module.py')) |
| 13 | self.assertFalse(exists(test_data_path + '/zipped_lib.zip/zipped_module2.py')) |
| 14 | self.assertFalse(exists(test_data_path + '/zipped_lib2.zip/zipped_module.py')) |
| Tor Norbye | 3a2425a | 2013-11-04 10:16:08 -0800 | [diff] [blame] | 15 | |
| 16 | |
| 17 | def testEggFileExits(self): |
| 18 | from pydevd_file_utils import exists |
| Tor Norbye | 8668e1b | 2013-12-20 09:14:04 -0800 | [diff] [blame^] | 19 | self.assertTrue(exists(test_data_path + '/pycharm-debug.egg/pydev/pydevd.py')) |
| 20 | self.assertFalse(exists(test_data_path + '/pycharm-debug.egg/pydev/pydevd2.py')) |