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

Method get_interpolation_config

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

Source from the content-addressed store, hash-verified

780
781 # shared by subclasses
782 def get_interpolation_config(self):
783 return self.fromstring(
784 "[Foo]\n"
785 "bar{equals}something %(with1)s interpolation (1 step)\n"
786 "bar9{equals}something %(with9)s lots of interpolation (9 steps)\n"
787 "bar10{equals}something %(with10)s lots of interpolation (10 steps)\n"
788 "bar11{equals}something %(with11)s lots of interpolation (11 steps)\n"
789 "with11{equals}%(with10)s\n"
790 "with10{equals}%(with9)s\n"
791 "with9{equals}%(with8)s\n"
792 "with8{equals}%(With7)s\n"
793 "with7{equals}%(WITH6)s\n"
794 "with6{equals}%(with5)s\n"
795 "With5{equals}%(with4)s\n"
796 "WITH4{equals}%(with3)s\n"
797 "with3{equals}%(with2)s\n"
798 "with2{equals}%(with1)s\n"
799 "with1{equals}with\n"
800 "\n"
801 "[Mutual Recursion]\n"
802 "foo{equals}%(bar)s\n"
803 "bar{equals}%(foo)s\n"
804 "\n"
805 "[Interpolation Error]\n"
806 # no definition for 'reference'
807 "name{equals}%(reference)s\n".format(equals=self.delimiters[0]))
808
809 def check_items_config(self, expected):
810 cf = self.fromstring("""

Callers 3

test_interpolationMethod · 0.80
test_interpolationMethod · 0.80

Calls 2

fromstringMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected