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

Method testUnicodeSupport

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

Source from the content-addressed store, hash-verified

26 return ApacheConfigParser(ApacheConfigLexer(), start=start)
27
28 def testUnicodeSupport(self):
29 ApacheConfigLexer = make_lexer()
30 ApacheConfigParser = make_parser()
31 parser = ApacheConfigParser(ApacheConfigLexer(), start='statement')
32
33 ast = parser.parse('a = 三')
34 self.assertEqual(ast, ['statement', 'a', '三'])
35
36 def testOptionAndValue(self):
37 ApacheConfigLexer = make_lexer()

Callers

nothing calls this directly

Calls 3

make_lexerFunction · 0.90
make_parserFunction · 0.90
parseMethod · 0.45

Tested by

no test coverage detected