'A valid API request to create a container on a new node results
in an updated configuration.'

def test_configuration_updated_new_node(self):

    d = self.assertResponseCode('POST', '/configuration/containers', {u'node_uuid': self.NODE_B, u'name': u'postgres', u'image': u'postgres'}, CREATED)
    def created(_):
        deployment = self.persistence_service.get()
        expected = Deployment(nodes={Node(uuid=self.NODE_B_UUID, applications={u'postgres': Application(name=u'postgres', image=DockerImage.from_string('postgres'))})})
        self.assertEqual(deployment, expected)
    d.addCallback(created)
    return d
