Ejemplo n.º 1
0
 def test_null_password(self):
     u = User('joe', '*****@*****.**')
     h.assert_false(u.check_password('foo'))
Ejemplo n.º 2
0
 def test_password(self):
     u = User('joe', '*****@*****.**')
     u.password = '******'
     h.assert_is_not_none(u.password_hash)
     h.assert_true(u.check_password('foo'))