Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test_gtk_menus.py « no_gui « test - dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0fa84754a3716655a2e9d6f2abdacd49acb2d0cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import unittest

from gajim import gui
from gajim.common.const import URIType
from gajim.common.const import XmppUriQuery

gui.init('gtk')

from gajim.gtk.menus import _uri_context_menus
from gajim.gtk.menus import _xmpp_uri_context_menus


class Test(unittest.TestCase):
    def test_uri_menus_dict(self):
        for t in URIType:
            if t == URIType.INVALID:
                continue  # doesn't need to be present
            self.assertIn(t, _uri_context_menus)

    def test_xmpp_uri_menus_dict(self):
        for t in XmppUriQuery:
            self.assertIn(t, _xmpp_uri_context_menus)


if __name__ == '__main__':
    unittest.main()