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

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/test/TestFramework.py

  • Committer: Nick Chadwick
  • Date: 2009-02-26 02:50:42 UTC
  • mto: (1099.1.227 exercise-ui)
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090226025042-0e0ktnnfoa7zupiv
added in extra parts to the exercise edit view. Now almost all
parts of an exercise can be edited.

In addition, added a warning message to the exercise view to warn
users it is not currently ready for consumption

Show diffs side-by-side

added added

removed removed

Lines of Context:
579
579
        # if empty, make sure it can still be executed
580
580
        if include_code == "":
581
581
            include_code = "pass"
582
 
        self._include_code = str(include_code)
 
582
        self._include_code = include_code
583
583
        
584
584
        include_space = {}
585
585
        try:
586
586
            exec self._include_code in include_space
587
587
        except:
588
 
            raise TestCreationError("Bad include code")
 
588
            raise TestCreationError("-= Bad include code =-\n" + include_code)
589
589
 
590
590
        self._include_space = include_space
591
591