def METHOD_NAME(self, input_filename, snapshot_filename):
    with open(input_filename, "r") as input_file:
        input_data = input_file.read()
    cloudwatch_event = self.create_cloudwatch_log_event_from_data(input_data)
    snapshot_data = {}
    try:
        with open(snapshot_filename, "r") as snapshot_file:
            snapshot_data = json.loads(snapshot_file.read())
    except:
        pass  # Valid if snapshot data doesn't exist
    self.send_log_event(cloudwatch_event)
    output_data = self.get_recording()
    if update_snapshot:
        with open(snapshot_filename, "w") as snapshot_file:
            snapshot_file.write(json.dumps(output_data, indent=2, sort_keys=True))
            # snapshot_file.write(json.dumps(output_data, indent=2))
    else:
        message = f"Snapshots didn't match for {input_filename}. To update run `integration_tests.sh --update`."
        d = DeepDiff(snapshot_data, output_data)
        self.assertFalse(d, message)
        pass