예제 #1
0
 def test_success_url_as_reverse_lazy(self):
     url_name = 'two_factor:profile'
     url = reverse(url_name)
     view = PhoneDeleteView()
     view.success_url = reverse_lazy(url_name)
     self.assertEqual(view.get_success_url(), url)
 def test_success_url_as_reverse_lazy(self):
     url_name = 'two_factor:profile'
     url = reverse(url_name)
     view = PhoneDeleteView()
     view.success_url = reverse_lazy(url_name)
     self.assertEqual(view.get_success_url(), url)
예제 #3
0
 def test_success_url_as_url(self):
     url = '/account/two_factor/'
     view = PhoneDeleteView()
     view.success_url = url
     self.assertEqual(view.get_success_url(), url)
 def test_success_url_as_url(self):
     url = '/account/two_factor/'
     view = PhoneDeleteView()
     view.success_url = url
     self.assertEqual(view.get_success_url(), url)