This repository was archived by the owner on Oct 2, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,6 +125,13 @@ def test_process_postback_good_signature_without_request_token_returns_authentic
125125 auth_request = self .iframe_api .process_postback (self ._get_urlencoded_auth_request_postback_data ())
126126 self .assertEqual (type (auth_request ), toopher .AuthenticationRequest )
127127
128+ def test_process_postback_with_key_with_empty_value_returns_authentication_request (self ):
129+ auth_data = self ._get_auth_request_postback_data_as_dict ()
130+ auth_data ['requester_metadata' ] = ''
131+ auth_data ['toopher_sig' ] = '2CQouLu8dL3OA8N/mgHK6eeYHm4='
132+ auth_request = self .iframe_api .process_postback (urllib .urlencode (auth_data ))
133+ self .assertEqual (type (auth_request ), toopher .AuthenticationRequest )
134+
128135 def test_process_postback_bad_signature_fails (self ):
129136 data = self ._get_auth_request_postback_data_as_dict ()
130137 data ['toopher_sig' ] = 'invalid'
You can’t perform that action at this time.
0 commit comments