Beispiel #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))
Beispiel #2
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
     ))