'DELETE ``/configuration/leases/<dataset_id>`` releases that lease.'

def test_delete_non_existent(self):

    d = self.save_leases()
    d.addCallback((lambda _: self.assertResult('DELETE', ('/configuration/leases/' + bytes(uuid4())), request_body=None, expected_code=NOT_FOUND, expected_result={u'description': u'Lease    not    found.'})))
    def not_deleted(_):
        self.assertItemsEqual(self.persistence_service.get().leases.keys(), [self.dataset1, self.dataset2])
    d.addCallback(not_deleted)
    return d
