'Test write points w/bad precision TestInfluxDBClient object.'

def test_write_points_bad_precision(self):

    cli = InfluxDBClient()
    with self.assertRaisesRegexp(Exception, u"Invalid    time    precision    is    given.    \\(use    'n',    'u',    'ms',    's',    'm'    or    'h'\\)"):
        cli.write_points(self.dummy_points, time_precision=u'g')
