~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-25 01:05:22 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:300
conf/apps: Added TutorialService as a registered app.
tutorialservice: Started writing app. Currently reads some arguments, and if
    action=test and code is provided, echoes the code back in JSON.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    print
25
25
    
26
26
problem_suite = parse_tutorial_file('filesum_text.xml')
27
 
print_results(problem_suite.run_tests(file("filesum.py").read()))
 
27
print_results(problem_suite.run_tests("filesum.py"))
28
28
 
29
29
problem_suite = parse_tutorial_file('hello_text.xml')
30
 
print_results(problem_suite.run_tests(file("hello.py").read()))
 
30
print_results(problem_suite.run_tests("hello.py"))
31
31
 
32
32
problem_suite = parse_tutorial_file('all_input_text.xml')
33
 
print_results(problem_suite.run_tests(file("all_input.py").read()))
 
33
print_results(problem_suite.run_tests("all_input.py"))
34
34
 
35
35
problem_suite = parse_tutorial_file('fib_text.xml')
36
 
print_results(problem_suite.run_tests(file("fib.py").read()))
 
36
print_results(problem_suite.run_tests("fib.py"))