'A valid API request to create a container including a restart policy
of "on-failure" results in an updated configuration.'

def test_create_containers_with_restart_policy_onfailure(self):

    request_data = [{u'node_uuid': self.NODE_A, u'name': u'webserver', u'image': u'nginx', u'restart_policy': {u'name': u'on-failure', u'maximum_retry_count': 5}}]
    node_data = {Node(uuid=self.NODE_A_UUID, applications=WEBSERVER_APPLICATIONS.transform([WEBSERVER_APPLICATION.name, 'restart_policy'], RestartOnFailure(maximum_retry_count=5))), Node(uuid=self.NODE_B_UUID)}
    return self._test_create_container(request_data, node_data)
