'Test add database user for TestInfluxDBClient.'

def test_add_database_user(self):

    with requests_mock.Mocker() as m:
        m.register_uri(requests_mock.POST, 'http://localhost:8086/db/db/users')
        cli = InfluxDBClient(database='db')
        cli.add_database_user(new_username='paul', new_password='laup', permissions=('.*', '.*'))
        self.assertDictEqual(json.loads(m.last_request.body), {'writeTo': '.*', 'password': 'laup', 'readFrom': '.*', 'name': 'paul'})
