From b82954a5afd40b6b3e1e5db5c464500a697dcd6a Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Wed, 11 Jul 2018 19:35:23 +0300 Subject: Tests: empty configuration. --- test/test_configuration.py | 3 +++ 1 file changed, 3 insertions(+) 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') -- cgit