Ejemplo n.º 1
0
 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})
Ejemplo n.º 2
0
 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))