#NEWLINE# @ pytest . mark . cassandra #NEWLINE# def test_record_or_load_params( self , mock_requests , monkeypatch ) : #NEWLINE# #INDENT# mock_requests . request . return_value = mock . Mock ( encoding = 'utf-8' , content = b'Snapcity' , status_code = 200 , headers = { #NEWLINE# #INDENT# 'tota' : 'dyle' , #NEWLINE# #UNINDENT# } ) #NEWLINE# resp = requests . get ( 'dinosaurs.sexy' , params = { #NEWLINE# #INDENT# 'test' : 'foo' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( mock_requests . status_code == 200 ) #NEWLINE# assert ( resp . url == 'dinosaurs.sexy?test=foo' )