'An ``Application`` with the appropriate ``IRestartPolicy`` is
discovered from the corresponding restart policy of the ``Unit``.'

def test_discover_application_restart_policy(self):

    policy = RestartAlways()
    unit1 = UNIT_FOR_APP.set('restart_policy', policy)
    units = {unit1.name: unit1}
    applications = [APP.set('restart_policy', policy)]
    self._verify_discover_state_applications(units, applications)
