The validate_fingerprint() method doesn't return a value. It just raises an error if there is an invalid match, or it's quiet. You can't access the options (that it compares against) like it's an ivar, either. If you wanna do it that way, you need to call http_fingerprint(), but if you do it that way you're more writing a test case for http_fingerprint(), not validate_fingerprint.