コード例 #1
0
ファイル: test_user.py プロジェクト: shalevy1/annotateit
 def test_null_password(self):
     u = User('joe', '*****@*****.**')
     h.assert_false(u.check_password('foo'))
コード例 #2
0
ファイル: test_user.py プロジェクト: shalevy1/annotateit
 def test_password(self):
     u = User('joe', '*****@*****.**')
     u.password = '******'
     h.assert_is_not_none(u.password_hash)
     h.assert_true(u.check_password('foo'))