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

Method fromstring

Lib/test/test_configparser.py:2160–2163  ·  view source on GitHub ↗
(self, string)

Source from the content-addressed store, hash-verified

2158class SectionlessTestCase(unittest.TestCase):
2159
2160 def fromstring(self, string):
2161 cfg = configparser.ConfigParser(allow_unnamed_section=True)
2162 cfg.read_string(string)
2163 return cfg
2164
2165 def test_no_first_section(self):
2166 cfg1 = self.fromstring("""

Callers 2

test_no_first_sectionMethod · 0.95
test_no_sectionMethod · 0.95

Calls 1

read_stringMethod · 0.80

Tested by

no test coverage detected