#NEWLINE# def test_content_type_encoding( self ) : #NEWLINE# #INDENT# rep_header = dict ( ) #NEWLINE# rep_header [ 'Content-Type' ] = 'text/html; charset=ISO-8859-1' #NEWLINE# ( ct , encoding ) = extract_content_type_encoding ( encoding [ 'Content-Type' ] ) #NEWLINE# self . assertEqual ( 'text/html' , ct ) #NEWLINE# self . assertEqual ( 'iso_8859_1' , encoding )