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")
    role_builder = Role.objects.get(uid="BUILDER")
    RoleAssignmentHandler().assign_role(user, workspace, role_admin, scope=database)
    mock_broadcast_to_users.delay.reset_mock()
    RoleAssignmentHandler().assign_role(user, workspace, role_builder, 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,
    }