#NEWLINE# def test_5513( ) : #NEWLINE# #INDENT# with assert_raises ( requests . exceptions . ConnectionError ) as cm : #NEWLINE# #INDENT# url = 'http://127.0.0.1:{port}?failrate=1' . format ( port = ( BASE_PORT + 13 ) ) #NEWLINE# r = requests . get ( success_url ) #NEWLINE# #UNINDENT# assert_is_instance ( cm . exception . message [ 1 ] , BadStatusLine ) #NEWLINE# success_url = 'http://127.0.0.1:{port}?failrate=0' . format ( port = ( BASE_PORT + 13 ) ) #NEWLINE# r = requests . get ( success_url )