def METHOD_NAME(db, client):
    client.login(username='owner', password='owner')
    url = reverse(urlnames['list'], args=[1])
    data = {
        'user': 800,
        'role': 'guest'
    }
    response = client.post(url, data)
    assert response.status_code == 400
    assert 'Invalid pk' in response.json()['user'][0]