2
from parse_tute import *
4
def print_results((name, results)):
5
""" Print the output of a testsuite nicely """
7
for (case_name, test_results) in results:
8
print "Case: " + case_name
9
for test_result in test_results:
10
print " " + test_result
13
problem_suite = parse_tutorial_file('all_input_text.xml')
14
print_results(problem_suite.run_tests("all_input.py"))
16
problem_suite = parse_tutorial_file('fib_text.xml')
17
print_results(problem_suite.run_tests("fib.py"))