def METHOD_NAME(make_stubber, error_code):
    ses_client = boto3.client('ses')
    ses_stubber = make_stubber(ses_client)
    ses_template = SesTemplate(ses_client)
    template_name = 'test-template'
    ses_template.template = {'TemplateName': template_name}
    ses_stubber.stub_delete_template(template_name, error_code=error_code)
    if error_code is None:
        ses_template.delete_template()
    else:
        with pytest.raises(ClientError) as exc_info:
            ses_template.delete_template()
        assert exc_info.value.response['Error']['Code'] == error_code