def METHOD_NAME(make_stubber, make_unique_name, error_code):
    iam_stubber = make_stubber(account_wrapper.iam.meta.client)
    alias = make_unique_name('alias-')
    iam_stubber.stub_delete_account_alias(alias, error_code=error_code)
    if error_code is None:
        account_wrapper.delete_alias(alias)
    else:
        with pytest.raises(ClientError) as exc_info:
            account_wrapper.delete_alias(alias)
        assert exc_info.value.response['Error']['Code'] == error_code