'Test alter database admin for TestInfluxDBClient.'

def test_alter_database_admin(self):

    with requests_mock.Mocker() as m:
        m.register_uri(requests_mock.POST, 'http://localhost:8086/db/db/users/paul')
        cli = InfluxDBClient(database='db')
        cli.alter_database_admin(username='paul', is_admin=False)
        self.assertDictEqual(json.loads(m.last_request.body), {'admin': False})
