summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-07-11 19:35:23 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-07-11 19:35:23 +0300
commitb82954a5afd40b6b3e1e5db5c464500a697dcd6a (patch)
treed4efac184827255a180be66b0dc9f64191768f1a
parent8fd32c9394c3c6817ce1fc4834e51a390d270333 (diff)
downloadunit-b82954a5afd40b6b3e1e5db5c464500a697dcd6a.tar.gz
unit-b82954a5afd40b6b3e1e5db5c464500a697dcd6a.tar.bz2
Tests: empty configuration.
-rw-r--r--test/test_configuration.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py
index d3bedb1f..7e966b14 100644
--- a/test/test_configuration.py
+++ b/test/test_configuration.py
@@ -6,6 +6,9 @@ class TestUnitConfiguration(unit.TestUnitControl):
def setUpClass():
unit.TestUnit().check_modules('python')
+ def test_json_empty(self):
+ self.assertIn('error', self.conf(''), 'empty')
+
def test_json_leading_zero(self):
self.assertIn('error', self.conf('00'), 'leading zero')