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())
Exemple #7
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()
Exemple #8
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()
 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()
 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()