Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit 862c0c6

Browse files
author
Grace Yim
committed
Add test for ToopherIframe.process_postback without request token
1 parent 501153b commit 862c0c6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/test_toopher_iframe.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ def test_process_postback_good_signature_with_extras_returns_authentication_requ
110110
auth_request = self.iframe_api.process_postback(self._get_urlencoded_auth_request_postback_data(), ToopherIframeTests.request_token, ttl=100)
111111
self.assertEqual(type(auth_request), toopher.AuthenticationRequest)
112112

113+
def test_process_postback_good_signature_without_request_token_returns_authentication_request(self):
114+
auth_request = self.iframe_api.process_postback(self._get_urlencoded_auth_request_postback_data())
115+
self.assertEqual(type(auth_request), toopher.AuthenticationRequest)
116+
113117
def test_process_postback_bad_signature_fails(self):
114118
data = self._get_auth_request_postback_data_as_dict()
115119
data['toopher_sig'] = 'invalid'

0 commit comments

Comments
 (0)