'Test write points UDP.'

def test_write_points_udp(self):

    cli = InfluxDBClient(u'localhost', self.influxd_inst.http_port, u'root', u'', database=u'db', use_udp=True, udp_port=self.influxd_inst.udp_port)
    cli.write_points(dummy_point)
    time.sleep(3)
    rsp = self.cli.query(u'SELECT    *    FROM    cpu_load_short')
    self.assertEqual([{u'value': 0.64, u'time': u'2009-11-10T23:00:00Z', u'host': u'server01', u'region': u'us-west'}], list(rsp[u'cpu_load_short']))
