Example #1
0
 def test_password_hashing(self):
     user = User(username='******')
     user.set_password('cat')
     self.assertFalse(user.check_password('dog'))
     self.assertTrue(user.check_password('cat'))
Example #2
0
 def test_password_hashing(self):
     u = User(username='******')
     u.set_password('123456')
     self.assertFalse(u.check_password('dog'))
     self.assertTrue(u.check_password('123456'))