def test_should_raise_notfounderror_when_nonindexed_id_is_used_for_suggest(self): with self.assertRaises(NotFoundError): self.es.suggest(body={}, index=self.index_name)