From 2c4ce35b52cd1fbc4fcc5a85ab3c0f4e122978bd Mon Sep 17 00:00:00 2001 From: kakwa Date: Tue, 19 May 2015 18:30:58 +0200 Subject: [PATCH] adding unit tests for missing parameters in main conf file --- tests/test_LdapCherry.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_LdapCherry.py b/tests/test_LdapCherry.py index 6a68c76..640d28b 100644 --- a/tests/test_LdapCherry.py +++ b/tests/test_LdapCherry.py @@ -60,6 +60,14 @@ class TestError(object): app._set_access_log(cfg, logging.DEBUG) app._set_access_log(cfg, logging.DEBUG) + def testMissingParameters(self): + app = LdapCherry() + try: + app.reload({}) + except SystemExit: + return + else: + raise AssertionError("expected an exception") def testLogger(self): app = LdapCherry()