changeset 2524:35dcbfc32a57

Fix Hits macro tests
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 23 Jul 2007 03:37:10 +0200
parents ee8d1a2cc252
children ce7fc6ba9b3a
files MoinMoin/macro/_tests/test_Hits.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/_tests/test_Hits.py	Mon Jul 23 02:27:16 2007 +0200
+++ b/MoinMoin/macro/_tests/test_Hits.py	Mon Jul 23 03:37:10 2007 +0200
@@ -69,7 +69,7 @@
         eventlog.EventLog(self.request).add(self.request, 'VIEWPAGE', {'pagename': self.pagename})
         eventlog.EventLog(self.request).add(self.request, 'VIEWPAGE', {'pagename': self.pagename})
 
-        result = self._test_macro('Hits', '')
+        result = self._test_macro(u'Hits', u'')
         expected = "3"
         assert result == expected
 
@@ -82,7 +82,7 @@
         eventlog.EventLog(self.request).add(self.request, 'VIEWPAGE', {'pagename': self.pagename})
         eventlog.EventLog(self.request).add(self.request, 'VIEWPAGE', {'pagename': self.pagename})
 
-        result = self._test_macro('Hits', 'all=1')
+        result = self._test_macro(u'Hits', u'all=1')
         expected = "6"
         assert result == expected
 
@@ -92,7 +92,7 @@
 
         # simulate a log entry SAVEPAGE for WikiSandBox to destinguish current page
         eventlog.EventLog(self.request).add(self.request, 'SAVEPAGE', {'pagename': 'WikiSandBox'})
-        result = self._test_macro('Hits', 'filter=SAVEPAGE')
+        result = self._test_macro(u'Hits', u'filter=SAVEPAGE')
         expected = "2"
         assert result == expected
 
@@ -100,7 +100,7 @@
         """ macro test: 'all=1, filter=SAVEPAGE' for Hits (all pages are counted for SAVEPAGE)"""
         self.shouldDeleteTestPage = True
 
-        result = self._test_macro('Hits', 'all=1, filter=SAVEPAGE')
+        result = self._test_macro(u'Hits', u'all=1, filter=SAVEPAGE')
         expected = "3"
         assert result == expected