#NEWLINE# @ pytest . mark . django_db #NEWLINE# def test_force_makes_request( self , mock_requests , monkeypatch ) : #NEWLINE# #INDENT# mock_requests . request . return_value = mock . Mock ( ok = True , encoding = 'utf-8' , content = 'rawr' , status_code = 200 , headers = { #NEWLINE# #INDENT# 'tota' : 'dyle' , #NEWLINE# #UNINDENT# } ) #NEWLINE# requests . get ( 'dinosaurs.sexy' , force = True ) #NEWLINE# assert ( mock_requests . request . called is True )