'Nodes in the configuration other than the one specified as the primary
for the new dataset have their configuration left alone by the
operation.'

def test_create_ignores_other_nodes(self):

    saving = self.persistence_service.save(Deployment(nodes={Node(uuid=self.NODE_A_UUID)}))
    def saved(ignored):
        return self.assertResponseCode('POST', '/configuration/datasets', {u'primary': self.NODE_B}, CREATED)
    saving.addCallback(saved)
    def created(ignored):
        deployment = self.persistence_service.get()
        node_a = deployment.nodes[self.NODE_A_UUID]
        self.assertEqual(Node(uuid=self.NODE_A_UUID), node_a)
    saving.addCallback(created)
    return saving
