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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user