Пример #1
0
 def test_reset_confirm(self, mock_prc, mock_reverse):
     mock_request = mock.MagicMock()
     mock_reverse.return_value = 'accounts:login'
     mock_prc.return_value = True
     ret = reset_confirm(mock_request)
     self.assertTrue(ret)
     mock_prc.assert_called_once_with(mock_request,
                                      template_name='tethys_portal/accounts/password_reset/reset_confirm.html',
                                      uidb64=None,
                                      token=None,
                                      post_reset_redirect='accounts:login')
Пример #2
0
 def test_reset_confirm(self, mock_prc, mock_reverse):
     mock_request = mock.MagicMock()
     mock_reverse.return_value = 'accounts:login'
     mock_prc.return_value = True
     ret = reset_confirm(mock_request)
     self.assertTrue(ret)
     mock_prc.assert_called_once_with(
         mock_request,
         template_name=
         'tethys_portal/accounts/password_reset/reset_confirm.html',
         uidb64=None,
         token=None,
         success_url='accounts:login')