~azzar1/unity/add-show-desktop-key

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from parse_tute import *

def print_results((name, results)):
    """ Print the output of a testsuite nicely """
    print name
    for (case_name, test_results) in results:
        print "Case: " + case_name
        for test_result in test_results:
            print "  " + test_result
    print 

problem_suite = parse_tutorial_file('all_input_text.xml')
print_results(problem_suite.run_tests("all_input.py"))

problem_suite = parse_tutorial_file('fib_text.xml')
print_results(problem_suite.run_tests("fib.py"))