#NEWLINE# def test_invalid_token( self ) : #NEWLINE# #INDENT# token = self . backend . create_token ( token . user ) #NEWLINE# self . user . set_password ( 'hunter2' ) #NEWLINE# self . user . save ( ) #NEWLINE# user = self . backend . parse_token ( token ) #NEWLINE# self . assertEqual ( user , None ) #NEWLINE# self . assertIn ( 'Invalid token' , self . get_log ( ) )