The problem is that I want to assert that CKAN actually gives a Not Authorized error rather than some other random error that doesn't make any sense (Not Found or something). I've seen cases where CKAN gives the wrong error messages because of bugs in the CKAN code. And I don't see how to assert this, except by asserting the error string itself