#NEWLINE# def test_hashing( self ) : #NEWLINE# #INDENT# '\n        Test that hashing works\n        ' #NEWLINE# password = 'vErY_s3cur3_pa$$word' #NEWLINE# user . set_password ( password ) #NEWLINE# self . assertTrue ( user . check_password ( password ) ) #NEWLINE# self . assertFalse ( user . check_password ( ( password + 'a' ) ) ) #NEWLINE# self . assertFalse ( user . check_password ( '' ) )