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

Commit 501153b

Browse files
author
Grace Yim
committed
Add test for process_postback with extras
1 parent e39865d commit 501153b

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
@@ -106,6 +106,10 @@ def test_process_postback_good_signature_returns_user(self):
106106
self.assertEqual(user.name, 'user name')
107107
self.assertTrue(user.toopher_authentication_enabled)
108108

109+
def test_process_postback_good_signature_with_extras_returns_authentication_request(self):
110+
auth_request = self.iframe_api.process_postback(self._get_urlencoded_auth_request_postback_data(), ToopherIframeTests.request_token, ttl=100)
111+
self.assertEqual(type(auth_request), toopher.AuthenticationRequest)
112+
109113
def test_process_postback_bad_signature_fails(self):
110114
data = self._get_auth_request_postback_data_as_dict()
111115
data['toopher_sig'] = 'invalid'

0 commit comments

Comments
 (0)