pantalaimon/tests/dbus_test.py
2019-05-21 16:48:46 +02:00

27 lines
640 B
Python

import pytest
from janus import Queue
from conftest import faker
from pantalaimon.config import ServerConfig
from pantalaimon.ui import Control, IdCounter
class TestClass(object):
def test_server_account_storing(self, panstore):
domain = faker.domain_name()
server_list = [
ServerConfig(
domain,
faker.url("http"),
faker.ipv4(),
8080,
)
]
queue = Queue()
counter = IdCounter()
control = Control(queue.sync_q, panstore, server_list, counter)
assert control.ListServers() == {domain: []}