summaryrefslogtreecommitdiff
path: root/tests/test_diagnose.py
blob: ba49618d69191f7be29ef8b62c52f9b09d5a3e89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python2
# -*- coding: utf-8-*-
import unittest
from client import diagnose


class TestDiagnose(unittest.TestCase):
    def testPythonImportCheck(self):
        # This a python stdlib module that definitely exists
        self.assertTrue(diagnose.check_python_import("os"))
        # I sincerly hope nobody will ever create a package with that name
        self.assertFalse(diagnose.check_python_import("nonexistant_package"))