#NEWLINE# @ pytest . mark . cassandra #NEWLINE# def test_record_or_load_loads( self , mock_requests , monkeypatch ) : #NEWLINE# #INDENT# requests . HarvesterResponse ( ok = True , method = 'get' , url = 'dinosaurs.sexy' , content = b'rawr' , headers_str = '{}' ) . save ( ) #NEWLINE# resp = requests . get ( 'dinosaurs.sexy' ) #NEWLINE# assert ( resp . headers == { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( resp . content == b'rawr' ) #NEWLINE# assert ( not self . request . called ) #NEWLINE# assert isinstance ( resp , requests . HarvesterResponse )