pep8 fixes

This commit is contained in:
Martin A. Brown 2016-02-26 13:24:10 -08:00
parent 7f48a97b94
commit 1951281cd9
2 changed files with 4 additions and 2 deletions

View File

@ -54,7 +54,8 @@ ex_markdown = SimpleNamespace(
ex_linuxdoc_dir = SimpleNamespace(
type=tldp.doctypes.linuxdoc.Linuxdoc,
filename=opj(sampledocs, 'Linuxdoc-Larger', 'Linuxdoc-Larger.sgml'),
filename=opj(sampledocs, 'Linuxdoc-Larger',
'Linuxdoc-Larger.sgml'),
)
# -- a bit ugly, but grab each dict

View File

@ -25,6 +25,7 @@ sampledocs = os.path.join(os.path.dirname(__file__), 'sample-documents')
widths = SimpleNamespace(status=20, stem=50)
class TestFileSourceCollectionMultiDir(TestToolsFilesystem):
def test_multidir_finding_singlefiles(self):
@ -148,7 +149,6 @@ class TestSourceDocument(unittest.TestCase):
self.assertTrue(ex.stem in result)
self.assertTrue('source' in result)
def test_bad_dir_multiple_doctypes(self):
fullpath = os.path.join(sampledocs, 'Bad-Dir-Multiple-Doctypes')
with self.assertRaises(Exception) as ecm:
@ -156,6 +156,7 @@ class TestSourceDocument(unittest.TestCase):
e = ecm.exception
self.assertTrue('multiple document choices' in e.message)
class TestMissingSourceDocuments(TestToolsFilesystem):
def test_init_missing(self):