'Test generation of a IndexMissingException.'

def testMissingIndex(self):

    err = self.checkRaises(exceptions.IndexMissingException, self.conn.indices.flush, self.index_name)
    self.assertEqual(str(err), '[test-index]    missing')
    self.assertEqual(err.status, 404)
    self.assertTrue(('error' in err.result))
    self.assertTrue(('ok' not in err.result))
