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))
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 ))