'Test write bad precision in UDP for TestInfluxDBClient object.'

def test_write_bad_precision_udp(self):

    cli = InfluxDBClient(u'localhost', 8086, u'root', u'root', u'test', use_udp=True, udp_port=4444)
    with self.assertRaisesRegexp(Exception, u'InfluxDB    only    supports    seconds    precision    for    udp    writes'):
        cli.write_points(self.dummy_points, time_precision=u'ms')
