'An API request to update a named container\'s host to the same host
on which it is already running results in an unchanged configuration.'

def test_update_same_host(self):

    d = self._create_container()
    d.addCallback((lambda _: self.persistence_service.get()))
    def handle_expected(expected):
        dr = self.assertResponseCode('POST', '/configuration/containers/mycontainer', {u'node_uuid': self.NODE_A}, OK)
        def updated(_):
            deployment = self.persistence_service.get()
            self.assertEqual(deployment, expected)
        dr.addCallback(updated)
        return dr
    d.addCallback(handle_expected)
    return d
