예제 #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))
예제 #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))
예제 #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")))
예제 #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")))