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

« back to all changes in this revision

Viewing changes to test/test_framework/test.py

  • Committer: me at id
  • Date: 2009-02-02 04:42:36 UTC
  • Revision ID: svn-v4:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1190
www/apps/userservice#get_user: Fix fallout from the Storm migration.
    ivle.auth.authenticate.authenticate now wants a store, so we give it one.
    We also perform the old password check before we set attributes on the
    user, as otherwise the new password will always succeed (as the hash has
    already been updated).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
import sys
3
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)
 
32
    problem_suite = parse_exercise_file(xmlfile)
33
33
    print_results(problem_suite.run_tests(file(pyfile).read()))