(self)
| 295 | self.assertRaises(ApacheConfigError, loader.loads, text) |
| 296 | |
| 297 | def testKeyOnlyOption(self): |
| 298 | text = """\ |
| 299 | key2 |
| 300 | key value |
| 301 | """ |
| 302 | ApacheConfigLexer = make_lexer() |
| 303 | ApacheConfigParser = make_parser() |
| 304 | |
| 305 | loader = ApacheConfigLoader( |
| 306 | ApacheConfigParser(ApacheConfigLexer())) |
| 307 | |
| 308 | config = loader.loads(text) |
| 309 | self.assertEqual(config, {'key2': None, 'key': 'value'}) |
| 310 | |
| 311 | def testDuplicateOptionsOverriden(self): |
| 312 | text = """\ |
nothing calls this directly
no test coverage detected