def test_example_6_24__verbatim_tags():
    """
    Example 6.24. Verbatim Tags

    Expected:
        %YAML 1.2
        ---
        !!map {
          ? !<tag:yaml.org,2002:str> "foo"
          : !<!bar> "baz",
        }
        
    """

    text = dedent("""
        !<tag:yaml.org,2002:str> foo :
          !<!bar> baz
        
    """)[1:-1]
    
    expected = None
    
    nodes = parser.parse(text)
    print_nodes(nodes)
    
    assert nodes == expected
def test_example_6_24__verbatim_tags ( ) : text = dedent ( """
        !<tag:yaml.org,2002:str> foo :
          !<!bar> baz
    """ ) [ 1 : - 1 ] expected = None nodes = parser . parse ( text ) print_nodes ( nodes ) assert nodes == expected
Example 6.24. Verbatim Tags

    Expected:
        %YAML 1.2
        ---
        !!map {
          ? !<tag:yaml.org,2002:str> "foo"
          : !<!bar> "baz",
        }