'``_parse_restart_policy`` raises ``ApplicationConfigurationError`` if a
maximum retry count is not an integer.'

def test_error_on_restart_policy_with_retry_count_not_integer(self):

    exception = self.assertRaises(ApplicationConfigurationError, _parse_restart_policy, application_name=u'foobar', config=dict(name=u'on-failure', maximum_retry_count=u'fifty'))
    self.assertEqual(u"Invalid    'restart_policy'    arguments    for    RestartOnFailure.    Got    {'maximum_retry_count':    u'fifty'}", exception.message)
