'If compatibility layer is present, importing gobject uses the gi
compatibility layer.'

def test_compatibilityLayer(self):

    if ('gi.pygtkcompat' not in sys.modules):
        raise SkipTest("This    version    of    gi    doesn't    include    pygtkcompat.")
    import gobject
    self.assertTrue(gobject.__name__.startswith('gi.'))
