Пример #1
0
 def mocked_get(url, **kwargs):
     if settings.MOZILLIANS_API_BASE in url:
         raise mozillians.BadStatusCodeError(600)
     return Response({
         'email': email,
         'family_name': 'Leonard',
         'given_name': 'Randalf',
         'user_id': '00000001',
         'email_verified': False,
     })
Пример #2
0
 def mocked_get(url, **options):
     raise mozillians.BadStatusCodeError('crap!')