'Test error reported by doing a bad request.'

def testBadRequest(self):

    err = self.checkRaises(exceptions.ElasticSearchException, self.conn._send_request, 'GET', '_bad_request')
    self.assertEqual(str(err), 'No    handler    found    for    uri    [/_bad_request]    and    method    [GET]')
    self.assertEqual(err.status, 400)
    self.assertEqual(err.result, 'No    handler    found    for    uri    [/_bad_request]    and    method    [GET]')
