• Home
  • Raw
  • Download

Lines Matching refs:getboolean

130         eq(cf.getboolean('Types', 'boolean'), False)
158 eq(cf.getboolean('Types', 'boolean', fallback=True), False)
159 eq(cf.getboolean('Types', 'no-such-boolean', fallback="yes"),
161 eq(cf.getboolean('Types', 'no-such-boolean', fallback=True), True)
163 cf.getboolean('Types', 'no-such-boolean')
164 eq(cf.getboolean('No Such Types', 'boolean', fallback=True), True)
223 eq(cf['Types'].getboolean('boolean', True), False)
224 eq(cf['Types'].getboolean('boolean', fallback=True), False)
225 eq(cf['Types'].getboolean('no-such-boolean', "yes"), "yes") # sic!
226 eq(cf['Types'].getboolean('no-such-boolean', fallback="yes"),
228 eq(cf['Types'].getboolean('no-such-boolean', True), True)
229 eq(cf['Types'].getboolean('no-such-boolean', fallback=True), True)
230 eq(cf['Types'].getboolean('no-such-boolean'), None)
606 self.assertTrue(cf.getboolean('BOOLTEST', 't%d' % x))
607 self.assertFalse(cf.getboolean('BOOLTEST', 'f%d' % x))
609 cf.getboolean, 'BOOLTEST', 'e%d' % x)
1361 self.assertFalse(cf.getboolean(longname, 'are they subsections'))
1983 self.assertEqual(cfg.getboolean('s', 'bool'), True)
1989 self.assertEqual(s.getboolean('bool'), True)
2043 def getboolean(self, section, option, *, raw=False, vars=None, member in BlatantOverrideConvertersTestCase.test_inheritance.StrangeConfigParser
2047 return super().getboolean(section, option, raw=raw, vars=vars,
2058 self.assertTrue(cfg.getboolean('one', 'one'))
2059 self.assertTrue(cfg.getboolean('two', 'two'))
2060 self.assertFalse(cfg.getboolean('one', 'two'))
2061 self.assertFalse(cfg.getboolean('two', 'one'))
2063 self.assertFalse(cfg.getboolean('one', 'one'))
2064 self.assertFalse(cfg.getboolean('two', 'two'))
2065 self.assertFalse(cfg.getboolean('one', 'two'))
2066 self.assertFalse(cfg.getboolean('two', 'one'))
2096 cfg.getboolean = lambda section, option: True
2105 self.assertTrue(cfg.getboolean('one', 'one'))
2106 self.assertTrue(cfg.getboolean('two', 'two'))
2107 self.assertTrue(cfg.getboolean('one', 'two'))
2108 self.assertTrue(cfg.getboolean('two', 'one'))
2110 self.assertFalse(cfg.getboolean('one', 'one'))
2111 self.assertFalse(cfg.getboolean('two', 'two'))
2112 self.assertFalse(cfg.getboolean('one', 'two'))
2113 self.assertFalse(cfg.getboolean('two', 'one'))