def test_bug_17944_unknown_password_algorithm(self):
     user = User.objects.get(username='******')
     form = UserChangeForm(instance=user)
     self.assertIn(
         _("Invalid password format or unknown hashing algorithm."),
         form.as_table())
 def test_unsuable_password(self):
     user = User.objects.get(username='******')
     user.set_unusable_password()
     user.save()
     form = UserChangeForm(instance=user)
     self.assertIn(_("No password set."), form.as_table())
 def test_bug_17944_empty_password(self):
     user = User.objects.get(username='******')
     form = UserChangeForm(instance=user)
     self.assertIn(_("No password set."), form.as_table())
 def test_bug_17944_empty_password(self):
     user = User.objects.get(username='******')
     form = UserChangeForm(instance=user)
     self.assertIn(_("No password set."), form.as_table())
 def test_bug_17944_unknown_password_algorithm(self):
     user = User.objects.get(username='******')
     form = UserChangeForm(instance=user)
     self.assertIn(_("Invalid password format or unknown hashing algorithm."),
         form.as_table())
 def test_unusable_password(self):
     user = User.objects.get(username='******')
     user.set_unusable_password()
     user.save()
     form = UserChangeForm(instance=user)
     self.assertIn(_("No password set."), form.as_table())
Exemplo n.º 7
0
Arquivo: forms.py Projeto: pvl/django
 def test_bug_17944_unknown_password_algorithm(self):
     user = User.objects.get(username='******')
     form = UserChangeForm(instance=user)
     # Just check that no error is raised.
     form.as_table()
Exemplo n.º 8
0
Arquivo: forms.py Projeto: pvl/django
 def test_bug_17944_empty_password(self):
     user = User.objects.get(username='******')
     form = UserChangeForm(instance=user)
     # Just check that no error is raised.
     form.as_table()
Exemplo n.º 9
0
 def test_bug_17944_unknown_password_algorithm(self):
     user = User.objects.get(username="******")
     form = UserChangeForm(instance=user)
     # Just check that no error is raised.
     form.as_table()
Exemplo n.º 10
0
 def test_bug_17944_empty_password(self):
     user = User.objects.get(username="******")
     form = UserChangeForm(instance=user)
     # Just check that no error is raised.
     form.as_table()