Commit 292f7caa authored by Lorenz Steinert's avatar Lorenz Steinert

fixed test

parent f86a658d
......@@ -50,7 +50,6 @@ class FsrLdapTest(unittest.TestCase):
logging.info = self.logging_info
logging.warning = self.logging_warning
@staticmethod
def ldap_search_fail(*arg, attributes=None):
"""mok th conn.search funktion for server timeout"""
......@@ -249,8 +248,12 @@ class GetFuncTest(unittest.TestCase):
self.assertEqual(esme.get_config("/tmp/python3-esme-testing/etc"), self.config1)
self.assertEqual(esme.get_config("/tmp/python3-esme-testing/etc", default=True),
self.config1)
os.remove("/tmp/python3-esme-testing/etc/proto.ini.default")
self.assertEqual(esme.get_config("/tmp/python3-esme-testing/etc"),
esme.Error.NO_DEFAULT_FILE)
self.assertEqual(self.info, [])
self.assertEqual(self.warning, ['No non default ini file found using default file.'])
self.assertEqual(self.warning, ['No non default ini file found using default file.',
'No ini file found. Using hardcoded defaults.'])
def test_get_share(self):
"""test the get_share function"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment