<s> from mock import patch <EOL> from tests . tools import create_mock_json <EOL> from twilio . rest . monitor import TwilioMonitorClient <EOL> @ patch ( "<STR_LIT>" ) <EOL> def test_events ( mock ) : <EOL> client = TwilioMonitorClient ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> resp = create_mock_json ( "<STR_LIT>" ) <EOL> mock . return_value = resp <EOL> client . events . get ( "<STR_LIT>" ) <EOL> uri = "<STR_LIT>" <EOL> mock . assert_called_with ( "<STR_LIT:GET>" , uri , auth = ( "<STR_LIT>" , "<STR_LIT>" ) , use_json_extension = False ) </s>
