test: Clearer code assertions in check-login

Readable output when the HTTP error codes don't match.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>