diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/mx/tests/test_alias_resolver.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/leap/mx/tests/test_alias_resolver.py b/src/leap/mx/tests/test_alias_resolver.py new file mode 100644 index 0000000..c8d7952 --- /dev/null +++ b/src/leap/mx/tests/test_alias_resolver.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python +# -*- encoding: utf-8 -*- +''' +test_alias_resolver.py +====================== +Unittests for /leap/mx/alias_resolver.py. + +@authors: Isis Agora Lovecruft +@license: see included LICENSE file +@copyright: copyright 2013 Isis Agora Lovecruft +''' + +from twisted.internet import address +from twisted.mail import maildir, alias +from twisted.protocols import postfix + +from leap.mx import alias_resolver +from leap.mx.util import config, log, net + + +if __name__ == "__main__": + config.filename = 'mx.conf.private' + config.loadConfig() + + user = config.couch.user + pswd = config.couch.passwd + host = config.couch.host + port = config.couch.port + + connection = alias_resolver.ConnectedCouchDB(host, port, + dbName="users", + username=user, + password=pswd) + connection.listDB() + print connection |