'``_parse_restart_policy`` raises ``ApplicationConfigurationError``
unless there is a ``name`` in the supplied configuration.'

def test_error_on_missing_name(self):

    exception = self.assertRaises(ApplicationConfigurationError, _parse_restart_policy, application_name=u'foobar', config={})
    self.assertEqual(u"'restart_policy'    must    include    a    'name'.", exception.message)
