MCPcopy Index your code
hub / github.com/python/cpython / test_default_case_sensitivity

Method test_default_case_sensitivity

Lib/test/test_configparser.py:519–527  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

517 self.assertTrue("Key" in cf["section"])
518
519 def test_default_case_sensitivity(self):
520 cf = self.newconfig({"foo": "Bar"})
521 self.assertEqual(
522 cf.get(self.default_section, "Foo"), "Bar",
523 "could not locate option, expecting case-insensitive option names")
524 cf = self.newconfig({"Foo": "Bar"})
525 self.assertEqual(
526 cf.get(self.default_section, "Foo"), "Bar",
527 "could not locate option, expecting case-insensitive defaults")
528
529 def test_parse_errors(self):
530 cf = self.newconfig()

Callers

nothing calls this directly

Calls 3

newconfigMethod · 0.45
assertEqualMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected