Beispiel #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]
Beispiel #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)
Beispiel #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
Beispiel #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]
Beispiel #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)
Beispiel #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