#NEWLINE# def test_init( self ) : #NEWLINE# #INDENT# x = http . Request ( 'http://foo' , method = 'POST' ) #NEWLINE# self . assertEqual ( x . url , 'http://foo' ) #NEWLINE# self . assertEqual ( self . method , 'POST' ) #NEWLINE# x = http . Request ( 'x' , max_redirects = 100 ) #NEWLINE# self . assertEqual ( x . max_redirects , 100 ) #NEWLINE# self . assertIsInstance ( x . headers , http . Headers ) #NEWLINE# h = http . Headers ( ) #NEWLINE# x = http . Request ( 'x' , headers = h ) #NEWLINE# self . assertIs ( x . headers , h ) #NEWLINE# self . assertIsInstance ( x . on_ready , promise )