From 67ee33ff8a6d2873ab9b0a01159ad1f328a69b89 Mon Sep 17 00:00:00 2001 From: Hugo Trippaers Date: Mon, 17 Nov 2014 15:33:40 +0100 Subject: [PATCH] More pep8 checks and fixes --- systemvm/test/python/TestCsApp.py | 2 +- systemvm/test/python/TestCsDhcp.py | 2 +- systemvm/test/python/TestCsRoute.py | 2 +- systemvm/test/python/runtests.sh | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/systemvm/test/python/TestCsApp.py b/systemvm/test/python/TestCsApp.py index 14308e6a309..d5d9e90fb08 100644 --- a/systemvm/test/python/TestCsApp.py +++ b/systemvm/test/python/TestCsApp.py @@ -13,7 +13,7 @@ class TestCsApp(unittest.TestCase): def test_init(self): csconfig = CsConfig() csconfig.set_cl() - csip = CsIP("eth0", csconfig); + csip = CsIP("eth0", csconfig) csapp = CsApp(csip) self.assertTrue(csapp is not None) diff --git a/systemvm/test/python/TestCsDhcp.py b/systemvm/test/python/TestCsDhcp.py index fbe5000f91a..b96eefb852b 100644 --- a/systemvm/test/python/TestCsDhcp.py +++ b/systemvm/test/python/TestCsDhcp.py @@ -1,5 +1,5 @@ import unittest -import mock +import mock from cs.CsDhcp import CsDhcp from cs import CsHelper import merge diff --git a/systemvm/test/python/TestCsRoute.py b/systemvm/test/python/TestCsRoute.py index c422402b03c..1c9f8a3e627 100644 --- a/systemvm/test/python/TestCsRoute.py +++ b/systemvm/test/python/TestCsRoute.py @@ -9,7 +9,7 @@ class TestCsRoute(unittest.TestCase): merge.DataBag.DPATH = "." def test_init(self): - csroute = CsRoute(["one","two","three","four"]) + csroute = CsRoute(["one", "two", "three", "four"]) self.assertTrue(csroute is not None) if __name__ == '__main__': diff --git a/systemvm/test/python/runtests.sh b/systemvm/test/python/runtests.sh index be090b3d970..0442e4c2082 100644 --- a/systemvm/test/python/runtests.sh +++ b/systemvm/test/python/runtests.sh @@ -5,4 +5,7 @@ export PYTHONPATH="../../patches/debian/config/opt/cloud/bin/" export PYTHONDONTWRITEBYTECODE=False +pep8 --max-line-length=179 --exclude=monitorServices.py,baremetal-vr.py `find ../../patches -name \*.py` +pep8 --max-line-length=179 *py + nosetests .