コード例 #1
0
 def test_searchable_text(self):
     # Test if searchable text is a concatenation of title and comment text
     self.assertEqual(
         catalog.searchable_text(self.comment)(),
         ('Lorem ipsum dolor sit amet.'))
     self.assertTrue(
         isinstance(catalog.searchable_text, DelegatingIndexerFactory))
コード例 #2
0
ファイル: test_indexers.py プロジェクト: urska19/Plone-test
 def test_searchable_text(self):
     # Test if searchable text is a concatenation of title and comment text
     self.assertEqual(
         catalog.searchable_text(self.comment)(),
         ('Lorem ipsum dolor sit amet.')
     )
     self.assertTrue(isinstance(
         catalog.searchable_text,
         DelegatingIndexerFactory
     ))