#NEWLINE# def test_search_pages( self ) : #NEWLINE# #INDENT# "\n        Test search for pages\n        To be fully useful, this testcase needs to have the following different\n        Plugin configurations within the project:\n            * unaltered cmsplugin_ptr\n            * cmsplugin_ptr with related_name='+'\n            * cmsplugin_ptr with related_query_name='+'\n            * cmsplugin_ptr with related_query_name='whatever_foo'\n            * cmsplugin_ptr with related_name='whatever_bar'\n            * cmsplugin_ptr with related_query_name='whatever_foo' and related_name='whatever_bar'\n        Those plugins are in cms/test_utils/project/pluginapp/revdesc/models.py\n        " #NEWLINE# page = api . create_page ( 'page' , 'nav_playground.html' , 'en' ) #NEWLINE# placeholder = page . placeholders . get ( slot = 'body' ) #NEWLINE# text = Text ( body = 'hello' , language = 'en' , placeholder = placeholder , plugin_type = 'TextPlugin' , position = 1 ) #NEWLINE# text . save ( ) #NEWLINE# page . publish ( 'en' ) #NEWLINE# self . assertEqual ( Page . objects . search ( 'hi' ) . count ( ) , 0 ) #NEWLINE# self . assertEqual ( Page . objects . search ( 'hello' ) . count ( ) , 1 )