You can simply use `assertRedirect(response, obj.get_absolute_url(), ...)` here. No need for string formatting.