Tests: UTF-8 BOM test.

This commit is contained in:
Andrei Zeliankou
2020-03-25 19:31:42 +00:00
parent fd8e524b82
commit 2e4ad9fbc0

View File

@@ -83,6 +83,25 @@ class TestConfiguration(TestControl):
'unicode number',
)
def test_json_utf8_bom(self):
self.assertIn(
'success',
self.conf(
b"""\xEF\xBB\xBF
{
"app": {
"type": "python",
"processes": {"spare": 0},
"path": "/app",
"module": "wsgi"
}
}
""",
'applications',
),
'UTF-8 BOM',
)
def test_applications_open_brace(self):
self.assertIn('error', self.conf('{', 'applications'), 'open brace')