|
@@ -41,7 +41,10 @@ class AsciiDocReaderTest(unittest.TestCase):
|
|
}
|
|
}
|
|
|
|
|
|
for key, value in expected.items():
|
|
for key, value in expected.items():
|
|
- self.assertEqual(value, page.metadata[key], key)
|
|
|
|
|
|
+ self.assertEqual(value, page.metadata[key], (
|
|
|
|
+ 'Metadata attribute \'%s\' does not match expected value.\n'
|
|
|
|
+ 'Expected: %s\n'
|
|
|
|
+ 'Actual: %s') % (key, value, page.metadata[key]))
|
|
|
|
|
|
def test_article_with_asc_options(self):
|
|
def test_article_with_asc_options(self):
|
|
# test to ensure the ASCIIDOC_OPTIONS is being used
|
|
# test to ensure the ASCIIDOC_OPTIONS is being used
|
|
@@ -57,4 +60,8 @@ class AsciiDocReaderTest(unittest.TestCase):
|
|
'<p>The quick brown fox jumped over '
|
|
'<p>The quick brown fox jumped over '
|
|
'the lazy dog’s back.</p>'
|
|
'the lazy dog’s back.</p>'
|
|
'</div>\n</div>\n</div>\n')
|
|
'</div>\n</div>\n</div>\n')
|
|
- self.assertEqual(page.content, expected)
|
|
|
|
|
|
+ self.assertEqual(page.content, expected)
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+if __name__ == '__main__':
|
|
|
|
+ unittest.main()
|