def METHOD_NAME(self):
    with temporary_file('w') as f:
        self.enable_addressing_mode_in_config(f, 'path')
        stdout = self.get_presigned_url_for_cmd(
            self.prefix + 's3://bucket/key')
    self.assert_presigned_url_matches(
        stdout, {
            'hostname': 's3.amazonaws.com',
            'path': '/bucket/key',
            'query_params': {
                'AWSAccessKeyId': 'access_key',
                'Expires': str(FROZEN_TIMESTAMP + DEFAULT_EXPIRES),
                'Signature': '2m9M0eLB%2BqI0nUpkyTskKmHd0Ig%3D',
            }
        }
    )