From 6dc126d03cb6030f718185f80fd2cf888bbcd1a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 14 May 2019 21:51:03 +0200 Subject: [PATCH] tests: Add initial dbus tests. --- tests/dbus_test.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/dbus_test.py diff --git a/tests/dbus_test.py b/tests/dbus_test.py new file mode 100644 index 0000000..2ece533 --- /dev/null +++ b/tests/dbus_test.py @@ -0,0 +1,16 @@ +import pytest +from janus import Queue + +from conftest import faker +from pantalaimon.ui import Control, Devices, IdCounter + + +class TestClass(object): + def test_server_account_storing(self): + users = [(faker.mx_id(), faker.device_id())] + + queue = Queue() + counter = IdCounter() + control = Control(queue.sync_q, users, counter) + + assert control.ListUsers() == users