def suite():
    """
        Gather all the tests from this module in a test suite.
    """
test_suite = unittest.TestSuite()
test_suite.addTest(unittest.makeSuite(UserServiceTest))
return test_suite
if __name__ == '__main__':
    unittest.main()
TestSuite с наборами тестов и тестовыми примерами