'``_parse_restart_policy`` raises ``ApplicationConfigurationError``
unless the restart_policy value is a dictionary.'

def test_error_on_restart_policy_not_a_dictionary(self):

    exception = self.assertRaises(ApplicationConfigurationError, _parse_restart_policy, application_name=u'foobar', config=u'pretend-i-am-a-dictionary')
    self.assertEqual(u"'restart_policy'    must    be    a    dict,    got    pretend-i-am-a-dictionary", exception.message)
