summaryrefslogtreecommitdiff
path: root/python/helpers/pydev/test_debug.py
blob: 2196ca6f9540688cdc18a764596afaba3f8d4708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
__author__ = 'Dmitry.Trofimov'

import unittest
import os

test_data_path = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'testData', 'debug'))

class PyDevTestCase(unittest.TestCase):
    def testZipFileExits(self):
        from pydevd_file_utils import exists

        self.assertTrue(exists(test_data_path +'/zipped_lib.zip/zipped_module.py'))
        self.assertFalse(exists(test_data_path + '/zipped_lib.zip/zipped_module2.py'))
        self.assertFalse(exists(test_data_path + '/zipped_lib2.zip/zipped_module.py'))


    def testEggFileExits(self):
        from pydevd_file_utils import exists
        self.assertTrue(exists(test_data_path + '/pycharm-debug.egg/pydev/pydevd.py'))
        self.assertFalse(exists(test_data_path + '/pycharm-debug.egg/pydev/pydevd2.py'))