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

« back to all changes in this revision

Viewing changes to test/test_framework/tests.py

  • Committer: dilshan_a
  • Date: 2008-01-25 02:35:29 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:302
Updated test framework so that student's code is passed in as a string.

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("filesum.py"))
 
27
print_results(problem_suite.run_tests(file("filesum.py").read()))
28
28
 
29
29
problem_suite = parse_tutorial_file('hello_text.xml')
30
 
print_results(problem_suite.run_tests("hello.py"))
 
30
print_results(problem_suite.run_tests(file("hello.py").read()))
31
31
 
32
32
problem_suite = parse_tutorial_file('all_input_text.xml')
33
 
print_results(problem_suite.run_tests("all_input.py"))
 
33
print_results(problem_suite.run_tests(file("all_input.py").read()))
34
34
 
35
35
problem_suite = parse_tutorial_file('fib_text.xml')
36
 
print_results(problem_suite.run_tests("fib.py"))
 
36
print_results(problem_suite.run_tests(file("fib.py").read()))