def METHOD_NAME(
    mock_broadcast_to_users, data_fixture
):
    user = data_fixture.create_user()
    workspace = data_fixture.create_workspace(user=user)
    database = data_fixture.create_database_application(workspace=workspace)
    role_admin = Role.objects.get(uid="ADMIN")
    RoleAssignmentHandler().assign_role(user, workspace, role_admin, scope=database)
    mock_broadcast_to_users.delay.reset_mock()
    RoleAssignmentHandler().remove_role(user, workspace, scope=database)
    mock_broadcast_to_users.delay.assert_called_once()
    args = mock_broadcast_to_users.delay.call_args
    assert args[0][0] == [user.id]
    assert args[0][1] == {
        "type": "permissions_updated",
        "group_id": workspace.id,
        "workspace_id": workspace.id,
    }