diff MoinMoin/macro/_tests/test_ImageLink.py @ 2727:cc9590a900c2

fix tests
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 13 Aug 2007 01:06:37 +0200
parents 388204baf00f
children 104590a28e54
line wrap: on
line diff
--- a/MoinMoin/macro/_tests/test_ImageLink.py	Sun Aug 12 23:58:58 2007 +0200
+++ b/MoinMoin/macro/_tests/test_ImageLink.py	Mon Aug 13 01:06:37 2007 +0200
@@ -7,7 +7,7 @@
     @license: GNU GPL, see COPYING for details.
 """
 import os
-from MoinMoin import macro
+from MoinMoin import macro, wikiutil
 from MoinMoin.logfile import eventlog
 from MoinMoin.Page import Page
 from MoinMoin.PageEditor import PageEditor
@@ -58,7 +58,8 @@
         """ macro ImageLink test: 'no args for ImageLink (ImageLink is executed on FrontPage) """
         #self._createTestPage('This is an example to test a macro')
         result = self._test_macro('ImageLink', '')
-        expected = '<div class="message">Not enough arguments to ImageLink macro! e.g. <<ImageLink(example.png, WikiName, width=200)>>.</div>'
+        expected = '<div class="message">%s</div>' % wikiutil.escape(
+                'Not enough arguments to ImageLink macro! e.g. <<ImageLink(example.png, WikiName, width=200)>>.')
         assert result == expected
 
     def testImageLinkTwoParamsNoKeyword(self):