More pep8 checks and fixes

This commit is contained in:
Hugo Trippaers 2014-11-17 15:33:40 +01:00 committed by wilderrodrigues
parent 5c4d221c34
commit 67ee33ff8a
4 changed files with 6 additions and 3 deletions

View File

@ -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)

View File

@ -1,5 +1,5 @@
import unittest
import mock
import mock
from cs.CsDhcp import CsDhcp
from cs import CsHelper
import merge

View File

@ -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__':

View File

@ -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 .