示例#1
0
def test_get_more_lines(fin, t):
    get_lines = get_line(fin)
    for idx, line in enumerate(fin):
        actual_t = next(get_lines)
        assert actual_t == t[idx]
示例#2
0
def test_read_yaml_config_block(line_in, line_out, fin, block_out):
    get_lines = get_line(fin)
    assert read_yaml_config_block(line_in, fin, get_lines) == (block_out, line_out)
示例#3
0
def test_detect_indentation_level(fin, t):
    get_lines = get_line(fin, verbatim=False)
    actual_t = next(get_lines)
    assert actual_t == t
示例#4
0
def test_get_more_lines(fin, t):
    get_lines = get_line(fin)
    for idx, line in enumerate(fin):
        actual_t = next(get_lines)
        assert actual_t == t[idx]
示例#5
0
def test_read_yaml_config_block(line_in, line_out, fin, block_out):
    get_lines = get_line(fin)
    assert read_yaml_config_block(line_in, fin,
                                  get_lines) == (block_out, line_out)
示例#6
0
def test_detect_indentation_level(fin, t):
    get_lines = get_line(fin, verbatim=False)
    actual_t = next(get_lines)
    assert actual_t == t