Lines Matching refs:getboolean
179 self.assertIs(tcl.getboolean('on'), True)
180 self.assertIs(tcl.getboolean('1'), True)
181 self.assertIs(tcl.getboolean(u'on'), True)
182 self.assertIs(tcl.getboolean(u'1'), True)
183 self.assertIs(tcl.getboolean(42), True)
184 self.assertIs(tcl.getboolean(0), False)
185 self.assertIs(tcl.getboolean(42L), True)
186 self.assertIs(tcl.getboolean(0L), False)
187 self.assertRaises(TypeError, tcl.getboolean)
188 self.assertRaises(TypeError, tcl.getboolean, 'on', '1')
189 self.assertRaises(TypeError, tcl.getboolean, 1.0)
190 self.assertRaises(TclError, tcl.getboolean, 'a')
192 tcl.getboolean, 'on\0')
194 self.assertIs(tcl.getboolean(unicode('on')), True)
196 tcl.getboolean, 'on' + unichr(0xd800))
748 self.assertRaises(OverflowError, tk.getboolean, value)