diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2020-03-25 19:31:42 +0000 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2020-03-25 19:31:42 +0000 |
commit | 2e4ad9fbc07a2ed408c017df93e5116d97a221e9 (patch) | |
tree | c30a5cb75a737fad5b21d49c4be8066a8d648704 /test/test_configuration.py | |
parent | fd8e524b823629b700ae550faced472757df3fbb (diff) | |
download | unit-2e4ad9fbc07a2ed408c017df93e5116d97a221e9.tar.gz unit-2e4ad9fbc07a2ed408c017df93e5116d97a221e9.tar.bz2 |
Tests: UTF-8 BOM test.
Diffstat (limited to '')
-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') |