'``_parse_restart_policy`` raises ``ApplicationConfigurationError`` if
``maximum_retry_count`` is combined with a policy of ``always``.'

def test_error_on_restart_policy_always_with_retry_count(self):

    exception = self.assertRaises(ApplicationConfigurationError, _parse_restart_policy, application_name=u'foobar', config=dict(name=u'always', maximum_retry_count=10))
    self.assertEqual(u"Invalid    'restart_policy'    arguments    for    RestartAlways.    Got    {'maximum_retry_count':    10}", exception.message)
