'Test writing points and check read back.'

def test_write_points_check_read(self):

    self.test_write_points()
    time.sleep(1)
    rsp = self.cli.query(u'SELECT    *    FROM    cpu_load_short')
    self.assertEqual(list(rsp), [[{u'value': 0.64, u'time': u'2009-11-10T23:00:00Z', u'host': u'server01', u'region': u'us-west'}]])
    rsp2 = list(rsp.get_points())
    self.assertEqual(len(rsp2), 1)
    pt = rsp2[0]
    self.assertEqual(pt, {u'time': u'2009-11-10T23:00:00Z', u'value': 0.64, u'host': u'server01', u'region': u'us-west'})
