Esempio n. 1
0
    def test_get_library_version(self):
        mods = ["Gtk", "Atk", "Gst", "Poppler", "Anthy", "InputPad", "Pango",
                "WebKit2", "GdkPixbuf", "LunarDate", "TotemPlParser", "GVnc"]

        for m in mods:
            try:
                m = import_namespace(m)
            except ImportError:
                continue
            self.assertTrue(get_library_version(m))
Esempio n. 2
0
    def test_get_library_version(self):
        mods = [
            "Gtk", "Atk", "Gst", "Poppler", "Anthy", "InputPad", "Pango",
            "WebKit2", "GdkPixbuf", "LunarDate", "TotemPlParser", "GVnc"
        ]

        for m in mods:
            try:
                m = import_namespace(m)
            except ImportError:
                continue
            self.assertTrue(get_library_version(m))
Esempio n. 3
0
 def test_get_project_version(self):
     self.assertEqual(
         get_project_version(import_namespace("GObject", "2.0")),
         get_library_version(import_namespace("GLib", "2.0")))
Esempio n. 4
0
 def test_get_project_version(self):
     self.assertEqual(
         get_project_version(import_namespace("GObject", "2.0")),
         get_library_version(import_namespace("GLib", "2.0")))