Open nessita opened 1 year ago
The current signature of assertGoodView looks like this:
assertGoodView
def assertGoodView(self, url_name, *args, **kwargs):
but the implementation never reverses the url_name param so a valid url name results in a 404 instead of a 400.
reverse
url_name
OTOH, assertLoginRequired has this signature:
assertLoginRequired
def assertLoginRequired(self, url, *args, **kwargs):
but it forcibly calls reverse on URL, which fails if you pass the resolved url! :confused:
The current signature of
assertGoodView
looks like this:but the implementation never
reverse
s theurl_name
param so a valid url name results in a 404 instead of a 400.