Пример #1
0
 def _login_attempt(self, email, assertion='assertion123', next=None):
     if not next:
         next = '/'
     with mock_browserid(email):
         post_data = {'assertion': assertion,
                      'next': next}
         return self.client.post('/browserid/login/', post_data)
Пример #2
0
 def _login_attempt(self, email, assertion='assertion123', next=None):
     if not next:
         next = '/'
     with mock_browserid(email):
         post_data = {'assertion': assertion,
                      'next': next}
         return self.client.post('/browserid/login/', post_data)
Пример #3
0
 def _login_attempt(self, email, assertion='assertion123'):
     with mock_browserid(email):
         r = self.client.post(
             reverse('browserid_login'),
             {'assertion': assertion})
     return r
Пример #4
0
 def _login_attempt(self, email, assertion='assertion123'):
     with mock_browserid(email):
         r = self.client.post(reverse('browserid_login'),
                              {'assertion': assertion})
     return r
Пример #5
0
 def _login_attempt(self, email, assertion="assertion123"):
     with mock_browserid(email):
         r = self.client.post(reverse("browserid_login"), {"assertion": assertion})
     return r