Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 23988
Status: rejected
Priority: 0/
Queue: Test-WWW-Mechanize

People
Owner: Nobody in particular
Requestors: chris+rt [...] chrisdolan.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.12
Fixed in: (no value)



Subject: [WISH] get_not_ok method
Under Catalyst, I like to test URLs that are *supposed* to be 404 or 403 results. So far, I've done this like: $mech->get('http://localhost/no_such_path/'); ok(!$mech->success, 'load a non-existent page'); is($mech->status, 404, 'is a 404'); I would prefer something like: $mech->get_not_ok($url 'load a non-existent page'); or perhaps: $mech->get_with_status($url, 404, 'load a non-existent page'); Chris
I think "get_with_status" (although I don't like the name) is the way to go here. Any further followupsw, please post to the new Mech bug queue: