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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-12-15 00:41:44 UTC
  • Revision ID: me@williamgrant.id.au-20091215004144-hl948e67o23cwkao
Ensure that TestFramework keyword argument names are strs, not unicodes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
430
430
            if var.var_name == None or var.var_name == '':
431
431
                self._list_args.append(eval(var.var_value))
432
432
            else:
433
 
                self._keyword_args[var.var_name] = var.var_value
 
433
                # XXX: keyword argument names must be strs, not unicode,
 
434
                #      but they are stored in the DB as unicodes for
 
435
                #      reasons that I cannot fathom.
 
436
                var_name_str = str(var.var_name)
 
437
                self._keyword_args[var_name_str] = var.var_value
434
438
        except:
435
439
            raise TestCreationError("Invalid value for function argument: %s" %var.var_value)
436
440