comparison MoinMoin/formatter/_tests/test_formatter.py @ 4473:0e3c82dd2109

replace SyntaxReference page by HelpOnMoinWikiSyntax
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 03 Jan 2009 16:54:27 +0100
parents 2d7693b7caf6
children 2eaf4b42b400
comparison
equal deleted inserted replaced
4472:331686d6b068 4473:0e3c82dd2109
19 formatter = wikiutil.importPlugin(self.request.cfg, "formatter", f_name, "Formatter") 19 formatter = wikiutil.importPlugin(self.request.cfg, "formatter", f_name, "Formatter")
20 except wikiutil.PluginAttributeError: 20 except wikiutil.PluginAttributeError:
21 pass 21 pass
22 else: 22 else:
23 print "Formatting using %r" % formatter 23 print "Formatting using %r" % formatter
24 self.formatPage("SyntaxReference", formatter) 24 self.formatPage("HelpOnMoinWikiSyntax", formatter)
25 print "Done." 25 print "Done."
26 26
27 def testSyntaxReferenceDocBook(self): 27 def testSyntaxReferenceDocBook(self):
28 py.test.skip("docbook is broken") 28 py.test.skip("docbook is broken")
29 try: 29 try:
55 formatter = wikiutil.importPlugin(self.request.cfg, "formatter", f_name, "Formatter") 55 formatter = wikiutil.importPlugin(self.request.cfg, "formatter", f_name, "Formatter")
56 except wikiutil.PluginAttributeError: 56 except wikiutil.PluginAttributeError:
57 pass 57 pass
58 else: 58 else:
59 print "Formatting using %r" % formatter 59 print "Formatting using %r" % formatter
60 self.formatPage("SyntaxReference", formatter) 60 self.formatPage("HelpOnMoinWikiSyntax", formatter)
61 print "Done." 61 print "Done."
62 62
63 def formatPage(self, pagename, formatter): 63 def formatPage(self, pagename, formatter):
64 """Parse a page. Should not raise an exception if the API of the 64 """Parse a page. Should not raise an exception if the API of the
65 formatter is correct. 65 formatter is correct.