Tests: empty configuration.

This commit is contained in:
Andrey Zelenkov
2018-07-11 19:35:23 +03:00
parent 8fd32c9394
commit b82954a5af

View File

@@ -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')