'Create and then delete a container, ensuring the expected response
code of OK from deletion.
:param Application application: The container which will be deleted.
:returns: A ``Deferred`` which fires when all assertions have been
executed.'

def _delete_test(self, name):

    d = self.assertResponseCode('POST', '/configuration/containers', {u'node_uuid': self.NODE_A, u'name': name, u'image': u'postgres'}, CREATED)
    d.addCallback((lambda _: self.assertResult('DELETE', u'/configuration/containers/{}'.format(name).encode('ascii'), None, OK, None)))
    return d
