def test_example_6_16__tag__directive():
    """
    Example 6.16. “ TAG ” directive

    Expected:
        %YAML 1.2
        ---
        !!str "foo"
        
    """

    text = dedent("""
        %TAG !yaml! tag:yaml.org,2002:
        ---
        !yaml!str "foo"
        
    """)[1:-1]
    
    expected = None
    
    nodes = parser.parse(text)
    print_nodes(nodes)
    
    assert nodes == expected
def test_example_6_16__tag__directive ( ) : text = dedent ( """
        %TAG !yaml! tag:yaml.org,2002:
        ---
        !yaml!str "foo"
    """ ) [ 1 : - 1 ] expected = None nodes = parser . parse ( text ) print_nodes ( nodes ) assert nodes == expected
Example 6.16. “ TAG ” directive

    Expected:
        %YAML 1.2
        ---
        !!str "foo"