diff MoinMoin/converter/_tests/test_include.py @ 1264:7275fd6533b2

fix internal server error on circular transclusion loop, enhance error message, fixes issue #80
author Roger Haase <crosseyedpenguin@yahoo.com>
date Tue, 14 Feb 2012 10:48:43 -0700
parents afe0afe4e1a6
children 4237934df124
line wrap: on
line diff
--- a/MoinMoin/converter/_tests/test_include.py	Fri Feb 03 15:14:28 2012 +0100
+++ b/MoinMoin/converter/_tests/test_include.py	Tue Feb 14 10:48:43 2012 -0700
@@ -65,10 +65,11 @@
 
     def test_IncludeHandlesCircularRecursion(self):
         # issue #80
-        # we choosed MoinWiki items so tests get simpler
+        # we use MoinWiki items to make tests simple
         update_item(u'page1', {CONTENTTYPE: u'text/x.moin.wiki'}, u'{{page2}}')
         update_item(u'page2', {CONTENTTYPE: u'text/x.moin.wiki'}, u'{{page3}}')
-        update_item(u'page3', {CONTENTTYPE: u'text/x.moin.wiki'}, u'{{page1}}')
+        update_item(u'page3', {CONTENTTYPE: u'text/x.moin.wiki'}, u'{{page4}}')
+        update_item(u'page4', {CONTENTTYPE: u'text/x.moin.wiki'}, u'{{page2}}')
 
         page1 = MoinWiki.create(u'page1')