From 0d23675f94115a5a87a63cbef29442e33995c649 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 10 Jul 2019 19:36:57 +0000 Subject: [PATCH] #1773: add webcam test git-svn-id: https://xpra.org/svn/Xpra/trunk@23133 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- .../unit/server/mixins/webcam_test.py | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 src/unittests/unit/server/mixins/webcam_test.py diff --git a/src/unittests/unit/server/mixins/webcam_test.py b/src/unittests/unit/server/mixins/webcam_test.py new file mode 100755 index 0000000000..8fb97cec28 --- /dev/null +++ b/src/unittests/unit/server/mixins/webcam_test.py @@ -0,0 +1,26 @@ +#!/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 WebcamMixinTest(ServerMixinTest): + + def test_mmap(self): + from xpra.server.mixins.webcam_server import WebcamServer + opts = AdHocStruct() + opts.webcam = "yes" + self._test_mixin_class(WebcamServer, opts) + +def main(): + unittest.main() + + +if __name__ == '__main__': + main()