#NEWLINE# def test_badpath_notfound( webapp ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# url = ( '%s/../../../../../../etc/passwd' % webapp . server . http . base ) #NEWLINE# urlopen ( url ) #NEWLINE# #UNINDENT# except HTTPError as e : #NEWLINE# #INDENT# assert ( url . code == 404 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert False