def METHOD_NAME(user_factory, remove_resource):
    """Asserts that user can view template after they have created it"""
    user_client1 = user_factory().client
    user_client2 = user_factory().client
    node_template = user_client1.create_node_template(name="nt-" +
                                                      random_str(),
                                                      azureConfig={})
    remove_resource(node_template)
    def can_view_template():
        try:
            return user_client1.by_id_node_template(id=node_template.id)
        except ApiError as e:
            assert e.error.status == 403
            return None
    wait_for(can_view_template, fail_handler=lambda:
             "creator was unable to view node template")
    # assert user cannot view template created by another user
    ensure_user_cannot_view_template(user_client2, node_template.id)