@pytest.mark.parametrize('auth_scopes', (
    ('users:write', ),
    ('users:read', ),
    ('users:read', 'users:write', ),
))
def test_getting_list_of_users_by_unauthorized_user_must_fail(
        flask_app_client,
        regular_user,
        auth_scopes
):
    # pylint: disable=invalid-name
    with flask_app_client.login(regular_user, auth_scopes=auth_scopes):
        response = flask_app_client.get('/api/v1/users/')

    if 'users:read' in auth_scopes:
        assert response.status_code == 403
    else:
        assert response.status_code == 401
    assert response.content_type == 'application/json'
    assert {'status', 'message'} >= set(response.json.keys())
dataset/ETHPy150Open frol/flask-restplus-server-example/tests/modules/users/resources/test_getting_users_info.py/test_getting_list_of_users_by_unauthorized_user_must_fail/swapped operands of `>=`