diff --git a/src/unittests/unit/server/mixins/logging_test.py b/src/unittests/unit/server/mixins/logging_test.py new file mode 100755 index 0000000000..71d86c461d --- /dev/null +++ b/src/unittests/unit/server/mixins/logging_test.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python +# This file is part of Xpra. +# Copyright (C) 2018 Antoine Martin +# Xpra is released under the terms of the GNU GPL v2, or, at your option, any +# later version. See the file COPYING for details. + +import unittest + +from xpra.util import AdHocStruct +from unit.server.mixins.servermixintest_util import ServerMixinTest + + +class InputMixinTest(ServerMixinTest): + + def test_fileprint(self): + from xpra.server.mixins.logging_server import LoggingServer + opts = AdHocStruct() + opts.remote_logging = "yes" + self._test_mixin_class(LoggingServer, opts) + +def main(): + unittest.main() + + +if __name__ == '__main__': + main() diff --git a/src/xpra/server/mixins/logging_server.py b/src/xpra/server/mixins/logging_server.py index fe9f0fbd69..79dc2ec838 100644 --- a/src/xpra/server/mixins/logging_server.py +++ b/src/xpra/server/mixins/logging_server.py @@ -11,7 +11,7 @@ from xpra.server.mixins.stub_server_mixin import StubServerMixin from xpra.log import Logger -log = Logger("client") +log = Logger("server") """