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)
An ``Application`` with the appropriate ``IRestartPolicy`` is
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/test/test_container.py/ApplicationNodeDeployerDiscoverNodeConfigurationTests.test_discover_application_restart_policy