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

Method test_delimiter_in_key

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

Source from the content-addressed store, hash-verified

2252 matching the section pattern"""
2253
2254 def test_delimiter_in_key(self):
2255 cfg = configparser.ConfigParser(delimiters=('='))
2256 cfg.add_section('section1')
2257 cfg.set('section1', 'a=b', 'c')
2258 output = io.StringIO()
2259 with self.assertRaises(configparser.InvalidWriteError):
2260 cfg.write(output)
2261 output.close()
2262
2263 def test_section_bracket_in_key(self):
2264 cfg = configparser.ConfigParser()

Callers

nothing calls this directly

Calls 5

add_sectionMethod · 0.95
setMethod · 0.95
assertRaisesMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected