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]
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)
def test_detect_indentation_level(fin, t): get_lines = get_line(fin, verbatim=False) actual_t = next(get_lines) assert actual_t == t