Lines Matching refs:default_section

44     default_section = configparser.DEFAULTSECT  variable in CfgParserTestCaseClass
57 default_section=self.default_section,
100 E.append(self.default_section)
111 eq(cf.defaults(), cf[self.default_section])
241 cf[self.default_section]['this_value'] = '1'
242 cf[self.default_section]['that_value'] = '2'
248 self.assertFalse(cf.remove_section(self.default_section))
258 self.assertTrue(cf.remove_option(self.default_section, 'this_value'))
260 self.assertFalse(cf.remove_option(self.default_section, 'this_value'))
275 del cf[self.default_section]
283 del cf[self.default_section]['that_value']
286 del cf[self.default_section]['that_value']
482 eq(L, sorted(["A", "B", self.default_section, "a"]))
516 cf.get(self.default_section, "Foo"), "Bar",
520 cf.get(self.default_section, "Foo"), "Bar",
656 default_section=self.default_section)
686 default_section=self.default_section)
819 cf.get(self.default_section, "Foo"), "Bar",
826 self.assertEqual(set(cf[self.default_section].keys()), {'foo'})
854 cf[self.default_section] = cf[self.default_section]
855 self.assertNotEqual(set(cf[self.default_section].keys()), set())
856 cf[self.default_section] = {}
857 self.assertEqual(set(cf[self.default_section].keys()), set())
973 self.assertRaises(ValueError, cf.add_section, self.default_section)
978 self.assertEqual(cf[self.default_section]['1'], '2.4')
979 self.assertAlmostEqual(cf[self.default_section].getfloat('1'), 2.4)
981 self.assertEqual(cf[self.default_section]['a'], '5.2')
982 self.assertAlmostEqual(cf[self.default_section].getfloat('a'), 5.2)
1050 default_section = 'general' variable in ConfigParserTestCaseNonStandardDefaultSection
1130 self.assertAlmostEqual(cf[self.default_section]['a'], 5.2)
1162 default_section = 'common' variable in ConfigParserTestCaseExtendedInterpolation
1352 self.assertEqual(cf.getint(self.default_section, 'go',
1356 cf.getint(self.default_section, 'go', raw=True,
1464 if section.name == self.default_section:
1466 for default, value in cf[self.default_section].items():