changeset 5603:5e01b23e0a37

test_search: replaced testpage name HelpOnEditing by TestOnEditing, because we need a page with a similiar name but without attachments.
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 06 Mar 2010 15:23:25 +0100
parents 8d3799e97a01
children bd4419916312
files MoinMoin/search/_tests/test_search.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/_tests/test_search.py	Sat Mar 06 14:51:18 2010 +0100
+++ b/MoinMoin/search/_tests/test_search.py	Sat Mar 06 15:23:25 2010 +0100
@@ -92,13 +92,13 @@
              u'SearchTestLinksLowerCase': u'searchtestpage',
              u'SearchTestOtherLinks': u'SearchTestLinks',
              u'TestEdit': u'TestEdit',
+             u'TestOnEditing': u'another test page',
              u'LanguageSetup': None,
              u'CategoryHomepage': None,
              u'HomePageWiki': None,
              u'FrontPage': None,
              u'RecentChanges': None,
              u'HelpOnCreoleSyntax': None,
-             u'HelpOnEditing': None,
              u'HelpIndex': None}
 
     searcher_class = None
@@ -133,11 +133,11 @@
         searches = {u'title:SearchTestPage': 1,
                     u'title:LanguageSetup': 1,
                     u'title:HelpIndex': 1,
-                    u'title:Help': 3,
-                    u'title:HelpOn': 2,
+                    u'title:Help': 2,
+                    u'title:TestOn': 1,
                     u'title:SearchTestNotExisting': 0,
                     u'title:FrontPage': 1,
-                    u'title:HelpOnEditing': 1}
+                    u'title:TestOnEditing': 1}
 
         def test(query, res_count):
             result = self.search(query)
@@ -292,7 +292,7 @@
 
         result = self.search(u"-title:HelpOn")
         test_result = len(result.hits)
-        n_pages = len(self.pages) - 2
+        n_pages = len(self.pages) - 1
         assert test_result == n_pages
 
     def testFullSearchNegatedFindAll(self):