#NEWLINE# def test_sees_error_message_if_username_doesnt_exist( self , user , testapp ) : #NEWLINE# #INDENT# res = testapp . get ( '/login/' ) #NEWLINE# form = res . forms [ 'loginForm' ] #NEWLINE# form [ 'username' ] = 'unknown' #NEWLINE# form [ 'password' ] = 'myprecious' #NEWLINE# res = form . submit ( ) #NEWLINE# assert ( 'Unknown user' in testapp )