diff --git a/src/unittests/unit/server/mixins/networkstate_test.py b/src/unittests/unit/server/mixins/networkstate_test.py new file mode 100755 index 0000000000..7d560743e7 --- /dev/null +++ b/src/unittests/unit/server/mixins/networkstate_test.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python +# This file is part of Xpra. +# Copyright (C) 2018-2019 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 MMAPMixinTest(ServerMixinTest): + + def test_mmap(self): + from xpra.server.mixins.networkstate_server import NetworkStateServer + opts = AdHocStruct() + opts.pings = 1 + opts.bandwidth_limit = "10Mbps" + self._test_mixin_class(NetworkStateServer, opts) + +def main(): + unittest.main() + + +if __name__ == '__main__': + main()