Ejemplo n.º 1
0
 def test_valid_new_password(self):
     u = UserProfile()
     u.set_password(self.utf)
     assert u.check_password(self.utf) is True
     assert u.has_usable_password() is True
Ejemplo n.º 2
0
 def test_valid_new_password(self):
     u = UserProfile()
     u.set_password(self.utf)
     assert u.check_password(self.utf) is True
     assert u.has_usable_password() is True
Ejemplo n.º 3
0
 def test_invalid_new_password(self):
     u = UserProfile()
     u.set_password(self.utf)
     assert u.check_password('wrong') is False
     assert u.has_usable_password() is True
Ejemplo n.º 4
0
 def test_invalid_new_password(self):
     u = UserProfile()
     u.set_password(self.utf)
     assert u.check_password('wrong') is False
     assert u.has_usable_password() is True