def METHOD_NAME(data_fixture):
    user = data_fixture.create_user()
    workspace = data_fixture.create_workspace(user=user)
    database = data_fixture.create_database_application(workspace=workspace)
    table = data_fixture.create_database_table(user=user, database=database)
    file_field = data_fixture.create_file_field(table=table)
    user_file_1 = data_fixture.create_user_file(
        original_name="test.png", is_image=True, size=500
    )
    RowHandler().create_row(user, table, {file_field.id: [{"name": user_file_1.name}]})
    table_workspace_storage_usage_item_type = TableWorkspaceStorageUsageItemType()
    table_workspace_storage_usage_item_type.register_plpgsql_functions()
    usage = table_workspace_storage_usage_item_type.calculate_storage_usage(
        workspace.id
    )
    assert usage == 500
    TrashHandler().trash(user, workspace, database, database)
    usage = table_workspace_storage_usage_item_type.calculate_storage_usage(
        workspace.id
    )
    assert usage == 0