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

« back to all changes in this revision

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

  • Committer: David Coles
  • Date: 2010-02-23 10:55:41 UTC
  • Revision ID: coles.david@gmail.com-20100223105541-ct14g7fa6le090co
exercise: Make invalid test case type error slightly more explicit

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
        """
192
192
        
193
193
        if test_type not in ['norm', 'check', 'match']:
194
 
            raise TestCreationError("Invalid test type in %s" % self._pass_msg)
 
194
            raise TestCreationError(
 
195
                    "Invalid test type '%s' in Test Case '%s'"%
 
196
                    (test_type, self._pass_msg))
195
197
        
196
198
        if function == '':
197
199
            if test_type == 'norm': function = self.ident