def test_title(self): self.assertEqual(catalog.title(self.comment)(), 'Jim on Document 1') self.assertTrue(isinstance(catalog.title, DelegatingIndexerFactory))