def METHOD_NAME(host):
    """
    Ensure unattended-upgrades completes successfully and ensures all packages
    are up-to-date.
    """
    c = host.run("sudo unattended-upgrades --dry-run --debug")
    assert c.rc == 0
    expected_origins = (
        "Allowed origins are: origin=Ubuntu,archive=focal, origin=Ubuntu,archive=focal-security"
        ", origin=Ubuntu,archive=focal-updates, origin=SecureDrop,codename=focal"
    )
    expected_result = (
        "No packages found that can be upgraded unattended and no pending auto-removals"
    )
    assert expected_origins in c.stdout
    assert expected_result in c.stdout