From 7d80c7d7b6c983cd631986b3c74672389c8916d9 Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 30 Dec 2014 19:09:49 +0100 Subject: Split unittests into separate files and move them to tests/ --- tests/test_diagnose.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/test_diagnose.py (limited to 'tests/test_diagnose.py') diff --git a/tests/test_diagnose.py b/tests/test_diagnose.py new file mode 100644 index 0000000..ba49618 --- /dev/null +++ b/tests/test_diagnose.py @@ -0,0 +1,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")) -- cgit v1.3.1