def test_insert(capsys, insert_program): insert_program.run() assert capsys.readouterr()[0] == 'Row added!\n'