#NEWLINE# def test_5515( ) : #NEWLINE# #INDENT# url = 'http://127.0.0.1:{port}' . format ( port = ( BASE_PORT + 15 ) ) #NEWLINE# r = requests . get ( url , stream = True , timeout = 0.005 ) #NEWLINE# assert_equal ( r . status_code , 200 ) #NEWLINE# assert_equal ( r . headers [ 'Content-Type' ] , 'application/json' ) #NEWLINE# with assert_raises ( requests . exceptions . ConnectionError ) as cm : #NEWLINE# #INDENT# r . content