Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
See zope.app.zptpage.interfaces.IZPTPage

src/z/o/zope.app.zptpage-3.5.1/src/zope/app/zptpage/textindex/tests.py   zope.app.zptpage(Download)
        html = u"<html><body>%s</body></html>\n" % (utext, )
 
        page.setSource(utext)
        self.failUnlessEqual(searchableText.getSearchableText(), [utext])
 
        page.setSource(html, content_type='text/html')
        self.assertEqual(searchableText.getSearchableText(), [utext+'\n'])
 
        page.setSource(html, content_type='text/plain')

src/z/o/zope.app.zptpage-3.5.1/src/zope/app/zptpage/tests/test_zptpage.py   zope.app.zptpage(Download)
    def test_ReadFile(self):
        page = ZPTPage()
        content = u"<p></p>"
        page.setSource(content)
        f = ZPTReadFile(page)
        utext = u'another test\n' # The source will grow a newline if ommited
        html = u"<html><body>%s</body></html>\n" % (utext, )
        page.setSource(html, content_type='text/plain')
        request = TestRequest()