'``_parse_restart_policy`` returns ``RestartOnFailure`` having the same
``maximum_retry_count`` value as supplied in the configuration.'

def test_restart_policy_on_failure_with_retry_count(self):

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