'``FlockerConfiguration.applications`` returns an ``Application`` with a
restart_policy of ``RestartNever`` if no policy was specified in the
configuration.'

def test_default_restart_policy(self):

    config = {u'applications': {u'cube': {u'image': u'twisted/plutonium'}}, u'version': 1}
    parser = FlockerConfiguration(config)
    applications = parser.applications()
    self.assertEqual(applications[u'cube'].restart_policy, RestartNever())
