'The ``DELETE`` method does not remove unrelated containers.'

def test_delete_leaves_others(self):

    d = self.assertResponseCode('POST', '/configuration/containers', {u'node_uuid': self.NODE_A, u'name': u'somecontainer', u'image': u'postgres'}, CREATED)
    d.addCallback((lambda _: self._delete_test(u'mycontainer')))
    def deleted(_):
        deployment = self.persistence_service.get()
        origin = next(iter(deployment.nodes.values()))
        self.assertEqual(origin.applications, pmap({u'somecontainer': Application(name=u'somecontainer', image=DockerImage.from_string(u'postgres'))}))
    d.addCallback(deleted)
    return d
