def test_should_raise_notfounderror_when_nonindexed_id_is_used(self): with self.assertRaises(NotFoundError): self.es.get(index=self.index_name, id='1')