diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_configuration.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py index 186e037d..2acb7ccd 100644 --- a/test/test_configuration.py +++ b/test/test_configuration.py @@ -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') |