(self)
| 132 | self.assertEqual(expect_text, text) |
| 133 | |
| 134 | def testForceArray(self): |
| 135 | text = """\ |
| 136 | b = [1] |
| 137 | """ |
| 138 | options = { |
| 139 | 'forcearray': True |
| 140 | } |
| 141 | ApacheConfigLexer = make_lexer(**options) |
| 142 | ApacheConfigParser = make_parser(**options) |
| 143 | |
| 144 | loader = ApacheConfigLoader( |
| 145 | ApacheConfigParser(ApacheConfigLexer()), **options) |
| 146 | |
| 147 | config = loader.loads(text) |
| 148 | |
| 149 | self.assertEqual(config, {'b': ['1']}) |
| 150 | |
| 151 | def testHereDocPreservesWhitespace(self): |
| 152 | text = """\ |
nothing calls this directly
no test coverage detected