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

« back to all changes in this revision

Viewing changes to test/test_framework/test.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:
30
30
 
31
31
    print "Testing:", basename
32
32
    problem_suite = parse_tutorial_file(xmlfile)
33
 
    print_results(problem_suite.run_tests(pyfile))
 
33
    print_results(problem_suite.run_tests(file(pyfile).read()))