Logical functional models in Funittest

Funittest comes with a full range of Logical Functional Models that can be used to pilot a Plone site. The Logical Functional Models are grouped by application features. The next example will show how to use the Logical Functional Model used for searching.

Searching for a text

The Logical Functional Model for searching a Plone site allows us to search for a text in the Plone site.

from funittest import interpreter
from funittest import logical
interpreter.start()
interpreter.open("/")
logical.cmfplone.search.search_text({'text': "Welcome to Plone"})