diff --git a/tests/test_wstools.py b/tests/test_wstools.py index 7eb58fa..caf7248 100644 --- a/tests/test_wstools.py +++ b/tests/test_wstools.py @@ -13,6 +13,9 @@ def makeTestSuite(): suite.addTest(test_wsdl.makeTestSuite("services_by_file")) return suite -if __name__ == "__main__": +def test_runner(): runner = unittest.TextTestRunner() runner.run(makeTestSuite()) + +if __name__ == '__main__': + test_runner() diff --git a/tests/test_wstools_net.py b/tests/test_wstools_net.py index 9c487fe..f1d7666 100644 --- a/tests/test_wstools_net.py +++ b/tests/test_wstools_net.py @@ -14,8 +14,8 @@ def makeTestSuite(): return suite -def main(): +def test_runner(): unittest.main(defaultTest="makeTestSuite") if __name__ == "__main__": - main() + test_runner()