def test_gui_channel_window(self): try: from .gui import ChannelWindow except SystemError: from gui import ChannelWindow sources = {"123":{"uuid": "123","hop": 3, "username": "******", "velocity": 3}} channel_window = ChannelWindow(sources, None) test_widget = TestWidget() channel_window.on_change_mode(test_widget, "123", "hop") channel_window.on_change_mode(test_widget, "123", "lock") channel_window.on_change_value(None, "123", "hop") channel_window.on_cancel(None)
def test_gui_channel_window(self): try: from .gui import ChannelWindow from .client import ClientThread except SystemError: from gui import ChannelWindow from client import ClientThread sources = { "123":{"uuid": "123","hop": 3, "username": "******", "velocity": 3, "channel": 1}, "234":{"uuid": "234","hop": 0, "username": "******", "velocity": 3, "channel": 6} } client_thread = ClientThread() channel_window = ChannelWindow(sources, client_thread) test_widget = TestWidget() channel_window.on_change_mode(test_widget, "123", "hop") channel_window.on_change_mode(test_widget, "123", "lock") channel_window.on_change_value(None, "123", "hop") channel_window.on_cancel(None) channel_window.on_apply(None)