(self)
| 157 | ) |
| 158 | |
| 159 | def testApacheIncludesDisabled(self): |
| 160 | text = """\ |
| 161 | include 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 = """\ |
nothing calls this directly
no test coverage detected