#NEWLINE# def test_invalid_charset( self ) : #NEWLINE# #INDENT# HTML = '<head><meta http-equiv="Content-Type"\n                    content="text/html; charset=windows-874">\'\n                    </head><body>test</body>' #NEWLINE# self . server . response [ 'get.data' ] = HTML #NEWLINE# g = build_grab ( ) #NEWLINE# g . go ( self . server . get_url ( ) ) #NEWLINE# print ( g . doc . charset )