1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-12-26 14:50:03 +01:00

adding unit tests for missing parameters in main conf file

This commit is contained in:
kakwa 2015-05-19 18:30:58 +02:00
parent bb56bdea6f
commit 2c4ce35b52

View File

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