def run_tests(self): """ Loads the test suite and hook the callback for reporting progress. """ Controller.patch_keystore_path() test_suite = suite() print("test_suite:", test_suite) self.stream_property = "" stream = StringIOCBWrite(callback_write=self.callback_write) verbosity = 2 unittest.TextTestRunner(stream=stream, verbosity=verbosity).run(test_suite)
def run_tests(self): """ Loads the test suite and hook the callback for reporting progress. """ # lazy loading import unittest from testsuite import suite test_suite = suite() self.stream_property = "" stream = StringIOCBWrite(callback_write=self.callback_write) verbosity = 2 unittest.TextTestRunner(stream=stream, verbosity=verbosity).run(test_suite)
def test_testsuite(self): """ Simply verifies the suite is created. """ test_suite = suite() self.assertEqual(type(test_suite), unittest.suite.TestSuite)