Run pep8 on tests.

I noticed that pep8 wasn't running on the tests.  This patch fixes that,
as well as a couple of pep8 errors in test_cfg.

Change-Id: I4429bfe6813a2e9394efb1753cbebbadb9f23833
This commit is contained in:
Russell Bryant
2012-05-16 11:34:29 -04:00
parent 654d80b416
commit f34db0fe74
2 changed files with 3 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ class BaseTestCase(unittest.TestCase):
(fd, path) = tempfile.mkstemp(prefix=basename, suffix=ext)
else:
path = basename + ext
fd = os.open(path, os.O_CREAT|os.O_WRONLY)
fd = os.open(path, os.O_CREAT | os.O_WRONLY)
self.tempfiles.append(path)
try:
os.write(fd, contents)
@@ -801,6 +801,7 @@ class TemplateSubstitutionTestCase(BaseTestCase):
self.assertTrue(hasattr(self.conf.snafu, 'bell'))
self.assertEquals(self.conf.snafu.bell, 'whistle-03')
class ReparseTestCase(BaseTestCase):
def test_reparse(self):

View File

@@ -9,7 +9,7 @@ commands = nosetests
[testenv:pep8]
deps = pep8
commands = pep8 --repeat --show-source openstack setup.py
commands = pep8 --repeat --show-source openstack tests setup.py
[testenv:pylint]
deps = pylint