'Test write batch points for TestInfluxDBClient object.'

def test_write_points_batch(self):

    with requests_mock.Mocker() as m:
        m.register_uri(requests_mock.POST, 'http://localhost:8086/db/db/series')
        cli = InfluxDBClient('localhost', 8086, 'username', 'password', 'db')
        cli.write_points(data=self.dummy_points, batch_size=2)
    self.assertEqual(1, m.call_count)
