def test_example_6_2__indentation_indicators():
    """
    Example 6.2. Indentation Indicators

    Expected:
        %YAML 1.2
        ---
        !!map {
          ? !!str "a"
          : !!seq [
            !!str "b",
            !!seq [ !!str "c", !!str "d" ]
          ],
        }
        
    """

    text = dedent("""
        ? a: - b
          -  - c
             - d
        
    """)[1:-1]
    
    expected = None
    
    nodes = parser.parse(text)
    print_nodes(nodes)
    
    assert nodes == expected
def test_example_6_2__indentation_indicators ( ) : text = dedent ( """
        ? a: - b
          -  - c
             - d
    """ ) [ 1 : - 1 ] expected = None nodes = parser . parse ( text ) print_nodes ( nodes ) assert nodes == expected
Example 6.2. Indentation Indicators

    Expected:
        %YAML 1.2
        ---
        !!map {
          ? !!str "a"
          : !!seq [
            !!str "b",
            !!seq [ !!str "c", !!str "d" ]
          ],
        }