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

Method testApacheIncludesDisabled

tests/unit/test_parser.py:159–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

157 )
158
159 def testApacheIncludesDisabled(self):
160 text = """\
161include first.conf
162<<include second.conf>>
163"""
164 options = {
165 'useapacheincludes': False
166 }
167
168 ApacheConfigLexer = make_lexer(**options)
169 ApacheConfigParser = make_parser(**options)
170
171 parser = ApacheConfigParser(
172 ApacheConfigLexer(), start='contents')
173
174 ast = parser.parse(text)
175 self.assertEqual(
176 ast, [
177 'contents', ['include', 'first.conf'],
178 ['include', 'second.conf']
179 ]
180 )
181
182 def testOptionAndValueSet(self):
183 text = """\

Callers

nothing calls this directly

Calls 3

make_lexerFunction · 0.90
make_parserFunction · 0.90
parseMethod · 0.45

Tested by

no test coverage detected