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

Method test_interpolation

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

Source from the content-addressed store, hash-verified

1080 config_class = configparser.RawConfigParser
1081
1082 def test_interpolation(self):
1083 cf = self.get_interpolation_config()
1084 eq = self.assertEqual
1085 eq(cf.get("Foo", "bar"),
1086 "something %(with1)s interpolation (1 step)")
1087 eq(cf.get("Foo", "bar9"),
1088 "something %(with9)s lots of interpolation (9 steps)")
1089 eq(cf.get("Foo", "bar10"),
1090 "something %(with10)s lots of interpolation (10 steps)")
1091 eq(cf.get("Foo", "bar11"),
1092 "something %(with11)s lots of interpolation (11 steps)")
1093
1094 def test_items(self):
1095 self.check_items_config([('default', '<default>'),

Callers

nothing calls this directly

Calls 3

eqFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected