'Older versions of PyGObject lack C{Application.quit}, and so won\'t
allow registration.'

def test_noQuit(self):

    reactor = gireactor.GIReactor(useGtk=False)
    self.addCleanup(self.unbuildReactor, reactor)
    app = object()
    exc = self.assertRaises(RuntimeError, reactor.registerGApplication, app)
    self.assertTrue(exc.args[0].startswith('Application    registration    is    not'))
