#NEWLINE# def test_headers_weirdness( ) : #NEWLINE# #INDENT# s = Scraper ( ) #NEWLINE# s . headers = { #NEWLINE# #INDENT# 'accept' : 'application/json' , #NEWLINE# #UNINDENT# } #NEWLINE# data = s . get ( ( HTTPBIN + 'headers' ) ) . json ( ) #NEWLINE# assert ( data [ 'headers' ] [ 'Accept' ] == 'application/json' ) #NEWLINE# s = Scraper ( ) #NEWLINE# data = s . get ( ( HTTPBIN + 'headers' ) , headers = { #NEWLINE# #INDENT# 'accept' : 'application/xml' , #NEWLINE# #UNINDENT# } ) . json ( ) #NEWLINE# assert ( data [ 'headers' ] [ 'Accept' ] == 'application/xml' )