def starter(): print "------- TASK #1 -------" print INPUT print " >> " print hw4_solution1.solution1("INPUT") print "------- TASK #2 -------" print INPUT print " >> " print hw4_solution2.solution2(INPUT, 34)
def tests_for_solution2(): u"""Tests for task 2""" text = "Proin eget tortor risus." assert hw4_solution2.solution2(INPUT) == "Proin..." assert hw4_solution2.hw4_solution2(text) == "Proin eget tortor risus." assert hw4_solution2.solution2(text, 24) == "Proin eget tortor risus." assert hw4_solution2.solution2(text, 23) == "Proin eget tortor..." assert hw4_solution2.solution2(text, 13) == "Proin eget..." assert hw4_solution2.solution2(text, 6) == "Pro..."