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)
def _login_attempt(self, email, assertion='assertion123'): with mock_browserid(email): r = self.client.post( reverse('browserid_login'), {'assertion': assertion}) return r
def _login_attempt(self, email, assertion='assertion123'): with mock_browserid(email): r = self.client.post(reverse('browserid_login'), {'assertion': assertion}) return r
def _login_attempt(self, email, assertion="assertion123"): with mock_browserid(email): r = self.client.post(reverse("browserid_login"), {"assertion": assertion}) return r