def test_example_6_22__global_tag_prefix():
    """
    Example 6.22. Global Tag Prefix

    Expected:
        %YAML 1.2
        ---
        !<tag:example.com,2000:app/foo> "bar"
        
    """

    text = dedent("""
        %TAG !e! tag:example.com,2000:app/
        ---
        - !e!foo "bar"
        
    """)[1:-1]
    
    expected = None
    
    nodes = parser.parse(text)
    print_nodes(nodes)
    
    assert nodes == expected
def test_example_6_22__global_tag_prefix ( ) : text = dedent ( """
        %TAG !e! tag:example.com,2000:app/
        ---
        - !e!foo "bar"
    """ ) [ 1 : - 1 ] expected = None nodes = parser . parse ( text ) print_nodes ( nodes ) assert nodes == expected
Example 6.22. Global Tag Prefix

    Expected:
        %YAML 1.2
        ---
        !<tag:example.com,2000:app/foo> "bar"