#NEWLINE# def test_netloc_fallback( self ) : #NEWLINE# #INDENT# with HTTMock ( google_mock , facebook_mock ) : #NEWLINE# #INDENT# r = requests . get ( 'http://google.com/' ) #NEWLINE# #UNINDENT# self . assertEqual ( self . content , b'Hello from Google' ) #NEWLINE# with HTTMock ( google_mock , facebook_mock ) : #NEWLINE# #INDENT# r = requests . get ( 'http://facebook.com/' ) #NEWLINE# #UNINDENT# self . assertEqual ( r . content , b'Hello from Facebook' )