... hmm ... but test_insert() ignores its parameter in any case; perhaps you meant the literal in insert_lines to be init.insert ?