#NEWLINE# @ override_settings ( DEFAULT_CONTENT_TYPE = 'text/xml' ) #NEWLINE# def test_default_content_type_is_text_html( self ) : #NEWLINE# #INDENT# '\n        Content-Type of the default error responses is text/html. Refs #20822.\n        ' #NEWLINE# response = self . client . get ( '/views/raises400/' ) #NEWLINE# self . assertEqual ( response [ 'Content-Type' ] , 'text/html' ) #NEWLINE# response = self . client . get ( '/views/raises403/' ) #NEWLINE# self . assertEqual ( response [ 'Content-Type' ] , 'text/html' ) #NEWLINE# response = self . client . get ( '/views/non_existing_url/' ) #NEWLINE# self . assertEqual ( response [ 'Content-Type' ] , 'text/html' ) #NEWLINE# response = self . client . get ( '/views/server_error/' ) #NEWLINE# self . assertEqual ( response [ 'Content-Type' ] , 'text/html' )