From f8bb88c518fe6e72f8e632a884470ea9a2934a8e Mon Sep 17 00:00:00 2001 From: "Martin A. Brown" Date: Mon, 7 Mar 2016 19:58:14 -0800 Subject: [PATCH] improve coverage testing of outputs.py --- tests/test_outputs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_outputs.py b/tests/test_outputs.py index 1c8fc41..e0361a0 100644 --- a/tests/test_outputs.py +++ b/tests/test_outputs.py @@ -20,6 +20,7 @@ class TestOutputNamingConvention(unittest.TestCase): onc = OutputNamingConvention("/path/to/output/", "Stem") self.assertTrue(onc.name_txt.endswith(".txt")) self.assertTrue(onc.name_pdf.endswith(".pdf")) + self.assertTrue(onc.name_epub.endswith(".epub")) self.assertTrue(onc.name_html.endswith(".html")) self.assertTrue(onc.name_htmls.endswith("-single.html")) self.assertTrue(onc.name_indexhtml.endswith("index.html")) @@ -68,6 +69,7 @@ class TestOutputDirectory(TestToolsFilesystem): with open(fname, 'w'): pass self.assertTrue(o.iscomplete) + self.assertTrue('Frobnitz' in str(o)) # # -- end of file