def test_can_get_consent_request(self, request): c = Client(**self.data) c.get_consent_request(self.challenge) request.assert_called_with( 'GET', 'http://localhost:4445/oauth2/auth/requests/consent', params={'consent_challenge': self.challenge})
def test_can_get_consent_request(self, request): c = Client(**self.data) c.get_consent_request(self.challenge) request.assert_called_with( 'GET', 'http://localhost:4445/oauth2/auth/requests/consent/{}' .format(self.challenge))