changeset 2535:52961e122768

fix tests, using unicode instead of str
author Johannes Berg <johannes AT sipsolutions DOT net>
date Mon, 23 Jul 2007 12:57:53 +0200
parents 4fb5d4b43d4c
children 72a31f09d5a1
files MoinMoin/parser/_tests/test_text_moin_wiki.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/_tests/test_text_moin_wiki.py	Mon Jul 23 12:53:27 2007 +0200
+++ b/MoinMoin/parser/_tests/test_text_moin_wiki.py	Mon Jul 23 12:57:53 2007 +0200
@@ -180,11 +180,11 @@
     needle = re.compile(text % r'(.+)')
     _tests = (
         # test                                   expected
-        ('[[DateTime(259200)]]',                '1970-01-04 00:00:00'),
-        ('[[DateTime(2003-03-03T03:03:03)]]',   '2003-03-03 03:03:03'),
-        ('[[DateTime(2000-01-01T00:00:00Z)]]',  '2000-01-01 00:00:00'), # works for Europe/Vilnius
-        ('[[Date(2002-02-02T01:02:03Z)]]',      '2002-02-02'),
-        ('[[DateTime(1970-01-06T00:00:00)]]',   '1970-01-06 00:00:00'), # fails e.g. for Europe/Vilnius
+        (u'[[DateTime(259200)]]',                '1970-01-04 00:00:00'),
+        (u'[[DateTime(2003-03-03T03:03:03)]]',   '2003-03-03 03:03:03'),
+        (u'[[DateTime(2000-01-01T00:00:00Z)]]',  '2000-01-01 00:00:00'), # works for Europe/Vilnius
+        (u'[[Date(2002-02-02T01:02:03Z)]]',      '2002-02-02'),
+        (u'[[DateTime(1970-01-06T00:00:00)]]',   '1970-01-06 00:00:00'), # fails e.g. for Europe/Vilnius
         )
 
     def setUp(self):