changeset 3244:886b8969dbc6

fix some unit tests
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 12 Mar 2008 01:08:43 +0100
parents 1ad6243cdf06
children b7005f7b69e5
files MoinMoin/macro/AttachInfo.py MoinMoin/macro/FullSearch.py MoinMoin/macro/_tests/test_FootNote.py MoinMoin/parser/_tests/test_text_creole.py MoinMoin/parser/_tests/test_text_moin_wiki.py
diffstat 5 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/AttachInfo.py	Wed Mar 12 00:23:45 2008 +0100
+++ b/MoinMoin/macro/AttachInfo.py	Wed Mar 12 01:08:43 2008 +0100
@@ -15,7 +15,7 @@
     """ generates info how much attachments stored on a page """
     if not pagename:
         pagename = macro.formatter.page.page_name
-    
+
     return info(pagename, macro.request)
 
 
--- a/MoinMoin/macro/FullSearch.py	Wed Mar 12 00:23:45 2008 +0100
+++ b/MoinMoin/macro/FullSearch.py	Wed Mar 12 01:08:43 2008 +0100
@@ -82,7 +82,7 @@
 
 
 def macro_FullSearch(macro, needle=None):
-    
+
     request = macro.request
     _ = request.getText
 
--- a/MoinMoin/macro/_tests/test_FootNote.py	Wed Mar 12 00:23:45 2008 +0100
+++ b/MoinMoin/macro/_tests/test_FootNote.py	Wed Mar 12 01:08:43 2008 +0100
@@ -48,9 +48,9 @@
         """ module_tested: enumbering of Footnotes"""
         m = self._make_macro()
         text = 'a'
-        FootNote.execute(m, text)
+        FootNote.macro_FootNote(m, text)
         text = 'b'
-        FootNote.execute(m, text)
+        FootNote.macro_FootNote(m, text)
         result = FootNote.emit_footnotes(m.request, m.request.formatter)
 
         assert result.endswith('2</a>)</li></ol></div>')
--- a/MoinMoin/parser/_tests/test_text_creole.py	Wed Mar 12 00:23:45 2008 +0100
+++ b/MoinMoin/parser/_tests/test_text_creole.py	Wed Mar 12 01:08:43 2008 +0100
@@ -230,7 +230,7 @@
 
     def testEscapeInGetTextMacro(self):
         """ parser.wiki: escape html markup in GetText macro """
-        test = "text <<GetText(<escape-me>)>> text"
+        test = u"text <<GetText(<escape-me>)>> text"
         self._test(test)
 
 # Getting double escaping
--- a/MoinMoin/parser/_tests/test_text_moin_wiki.py	Wed Mar 12 00:23:45 2008 +0100
+++ b/MoinMoin/parser/_tests/test_text_moin_wiki.py	Wed Mar 12 01:08:43 2008 +0100
@@ -301,7 +301,7 @@
 
     def testEscapeInGetTextMacro(self):
         """ parser.wiki: escape html markup in GetText macro """
-        test = "text <<GetText(<escape-me>)>> text"
+        test = u"text <<GetText(<escape-me>)>> text"
         self._test(test)
 
     def testEscapeInGetTextFormatted(self):