MCPcopy Create free account
hub / github.com/etingof/apacheconfig / testDuplicateBlocksUnmerged

Method testDuplicateBlocksUnmerged

tests/unit/test_loader.py:168–185  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

166 'def fn2():\n return 3'})
167
168 def testDuplicateBlocksUnmerged(self):
169 text = """\
170<a>
171b = 1
172</a>
173<a>
174b = 2
175</a>
176"""
177 ApacheConfigLexer = make_lexer()
178 ApacheConfigParser = make_parser()
179
180 loader = ApacheConfigLoader(
181 ApacheConfigParser(ApacheConfigLexer()))
182
183 config = loader.loads(text)
184
185 self.assertEqual(config, {'a': [{'b': '1'}, {'b': '2'}]})
186
187 def testDuplicateBlocksMerged_noMultiOptions_noMergeDuplicateOptions(self):
188 text = """\

Callers

nothing calls this directly

Calls 4

loadsMethod · 0.95
make_lexerFunction · 0.90
make_parserFunction · 0.90
ApacheConfigLoaderClass · 0.90

Tested by

no test coverage detected