[pylons-discuss] Re: WebTest: Testing for Pyramid HTTPExceptions with WebTest and AppError

2014-12-13 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/12/2014 08:15 PM, Kevin Engle wrote: Is there a better way to ensure my application is throwing an HTTPBadRequest? Pass 'expect_errors' to the app method in question, and then test the status code of the response. Tres. - --

[pylons-discuss] Re: WebTest: Testing for Pyramid HTTPExceptions with WebTest and AppError

2014-12-13 Thread Gael Pasgrimaud
On Sunday, December 14, 2014 12:27:23 AM UTC+1, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/12/2014 08:15 PM, Kevin Engle wrote: Is there a better way to ensure my application is throwing an HTTPBadRequest? Pass 'expect_errors' to the app method in