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

Method prepare

Lib/test/test_configparser.py:1426–1433  ·  view source on GitHub ↗
(self, config_class)

Source from the content-addressed store, hash-verified

1424 expected_output = "[section]\noption = None\n\n"
1425
1426 def prepare(self, config_class):
1427 # This is the default, but that's the point.
1428 cp = config_class(allow_no_value=False)
1429 cp.add_section("section")
1430 cp.set("section", "option", None)
1431 sio = io.StringIO()
1432 cp.write(sio)
1433 return sio.getvalue()
1434
1435 def test_none_as_value_stringified(self):
1436 cp = configparser.ConfigParser(allow_no_value=False)

Callers 1

Calls 4

getvalueMethod · 0.95
add_sectionMethod · 0.45
setMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected