#NEWLINE# def test_malformed_xml( self ) : #NEWLINE# #INDENT# req = webob . Request . blank ( '/' ) #NEWLINE# req . method = 'POST' #NEWLINE# req . body = b'<hi im not xml>' #NEWLINE# req . headers [ 'content-type' ] = 'application/xml' #NEWLINE# res = req . get_response ( req . wsgi_app ) #NEWLINE# self . assertEqual ( res . status_int , 400 )