Пример #1
0
    def test_run_test_class(self):
        """ Tests running a valid test class """

        module = TestRunner._load_test_module(self.test_path +
                                              self.valid_module)
        test_result = TestRunner._run_test_class(module)

        self.assertEqual(len(test_result.failures), 1)
        self.assertEqual(test_result.testsRun, 2)
Пример #2
0
    def test_load_module_valid(self):
        """ Tests loading a valid test module """

        actual = TestRunner._load_test_module(self.test_path +
                                              self.valid_module)
        self.assertIsNotNone(actual)