(self)
| 277 | self.assertEqual(config, {'a': ['1', '2', '3']}) |
| 278 | |
| 279 | def testDuplicateOptionsDenied(self): |
| 280 | text = """\ |
| 281 | a = 1 |
| 282 | <b/> |
| 283 | a = 2 |
| 284 | """ |
| 285 | options = { |
| 286 | 'allowmultioptions': False |
| 287 | } |
| 288 | |
| 289 | ApacheConfigLexer = make_lexer() |
| 290 | ApacheConfigParser = make_parser() |
| 291 | |
| 292 | loader = ApacheConfigLoader( |
| 293 | ApacheConfigParser(ApacheConfigLexer()), **options) |
| 294 | |
| 295 | self.assertRaises(ApacheConfigError, loader.loads, text) |
| 296 | |
| 297 | def testKeyOnlyOption(self): |
| 298 | text = """\ |
nothing calls this directly
no test coverage detected