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

« back to all changes in this revision

Viewing changes to test/test_framework/test.py

  • Committer: David Coles
  • Date: 2009-08-02 08:57:44 UTC
  • mto: (1294.2.119 ui-the-third)
  • mto: This revision was merged to the branch mainline in revision 1353.
  • Revision ID: coles.david@gmail.com-20090802085744-ig0mr5fcm29ngibv
Show drop down icon for breadcrumbs with a sub-menu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
import sys
3
 
sys.path.append('../../www/apps/tutorial/test/')
 
3
sys.path.append('../../www/apps/tutorialservice/test/')
4
4
 
5
 
from parse_tute import *
 
5
from parse_exercise import *
6
6
 
7
7
def print_results(problem):
8
8
    print "Problem: %s" %problem['name']
29
29
    pyfile = basename + '.py'
30
30
 
31
31
    print "Testing:", basename
32
 
    problem_suite = parse_tutorial_file(xmlfile)
33
 
    print_results(problem_suite.run_tests(pyfile))
 
32
    problem_suite = parse_exercise_file(xmlfile)
 
33
    print_results(problem_suite.run_tests(file(pyfile).read()))