def METHOD_NAME(builder, expected_yaml_str):
    yaml_str = builder.build_yaml_str()
    yaml_str = _reduce_white_space(yaml_str)
    expected_yaml_str = _reduce_white_space(expected_yaml_str)
    assert yaml_str == expected_yaml_str