'Test write points for TestInfluxDBClient object.'

def test_write_points(self):

    with requests_mock.Mocker() as m:
        m.register_uri(requests_mock.POST, 'http://localhost:8086/db/db/series')
        cli = InfluxDBClient(database='db')
        cli.write_points(self.dummy_points)
        self.assertListEqual(json.loads(m.last_request.body), self.dummy_points)
