Lines Matching refs:errmsg
76 def checkInvalidParam(self, widget, name, value, errmsg=None, argument
79 if errmsg is not None:
80 errmsg = errmsg.format(value)
83 if errmsg is not None:
84 self.assertEqual(str(cm.exception), errmsg)
91 if errmsg is not None:
92 self.assertEqual(str(cm.exception), errmsg)
105 errmsg='expected integer but got ""')
107 errmsg='expected integer but got "10p"')
109 errmsg='expected integer but got "3.2"')
119 errmsg='expected floating-point number but got ""')
121 errmsg='expected floating-point number but got "spam"')
129 errmsg='expected boolean value but got ""')
131 errmsg='expected boolean value but got "spam"')
139 errmsg='unknown color name "spam"')
146 errmsg='bad cursor spec "spam"')
157 errmsg = kwargs.pop('errmsg')
159 errmsg = None
161 if errmsg is None:
168 errmsg='ambiguous' + errmsg2)
169 errmsg = 'bad' + errmsg2
170 self.checkInvalidParam(widget, name, 'spam', errmsg=errmsg)
193 errmsg='bad screen distance "6x"', keep_orig=keep_orig)
195 errmsg='bad screen distance "spam"', keep_orig=keep_orig)
200 errmsg='bad relief "spam": must be '\
203 errmsg = None
205 errmsg=errmsg)
211 errmsg='image "spam" doesn\'t exist')
304 errmsg='bitmap "spam" not defined')
335 errmsg='font "" doesn\'t exist')
392 errmsg='bad justification "{}": must be '
395 errmsg='ambiguous justification "": must be '