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

« back to all changes in this revision

Viewing changes to test/test_framework/tests.py

  • Committer: mattgiuca
  • Date: 2008-01-22 05:46:42 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:265
apps: "serve" app now requires authentication like all other apps.
    (Because the "public viewing" functionality has been moved into the other
    subdomain).
consoleservice: Now demands a path: either "start" or "chat" (can't be
    nothing). "chat" functionality TBI.
console: Passes "start" as a path to consoleservice (or it would no longer
    work).

Show diffs side-by-side

added added

removed removed

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