#NEWLINE# def test_5508( ) : #NEWLINE# #INDENT# with assert_raises ( requests . exceptions . ReadTimeout ) as cm : #NEWLINE# #INDENT# url = 'http://127.0.0.1:{port}?sleep=0.002' . format ( port = ( BASE_PORT + 8 ) ) #NEWLINE# requests . get ( url , timeout = 0.001 ) #NEWLINE# #UNINDENT# url = 'http://127.0.0.1:{port}?sleep=0.001' . format ( port = ( BASE_PORT + 8 ) ) #NEWLINE# r = requests . get ( url , timeout = 0.02 ) #NEWLINE# assert_equal ( r . status_code , 200 )