'``_parse_restart_policy`` returns an ``RestartOnFailure`` if that
policy was specified in the configuration.'

def test_restart_policy_on_failure(self):

    self.assertEqual(RestartOnFailure(maximum_retry_count=None), _parse_restart_policy(application_name=u'foobar', config=dict(name=u'on-failure')))
