You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
521 B

""" Unit test for reportbug.ui module """
import unittest
from reportbug import utils
from reportbug import ui
from reportbug.ui import __LOADED_UIS as LOADED_UIS
class TestUI(unittest.TestCase):
def test_ui(self):
self.assertCountEqual(ui.AVAILABLE_UIS, ['text', 'urwid', 'gtk2'])
def test_getUI(self):
for loaded_ui in list(LOADED_UIS.keys()):
self.assertEqual(ui.getUI(loaded_ui), LOADED_UIS[loaded_ui])
self.assertEqual(ui.getUI('non-existing'), LOADED_UIS['text'])