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