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

« back to all changes in this revision

Viewing changes to www/apps/tutorialservice/test/parse_exercise.py

  • Committer: drtomc
  • Date: 2008-03-06 04:15:08 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:661
tutorialservice: log submitted attempts to the database.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
 
145
145
    return case
146
146
                
147
 
def parse_exercise_file(filename, exercise_num=1):
 
147
def parse_exercise_file(fileobj, exercise_num=1):
148
148
    """ Parse an xml exercise file and return a testsuite for that exercise """
149
 
    dom = parse(filename)
 
149
    dom = parse(fileobj)
150
150
 
151
151
    # get exercise
152
152
    count = 0