def runTest(self):
     """Testing GTK display"""
     proposals = EtcProposalsStub()
     controller = EtcProposalsControllerStub()
     self.view = EtcProposalsView(proposals, controller)
     gtk.main()
     self.failIf(self.Failed, 'Test failed.')
class TestView(TestGtk):
    def runTest(self):
        """Testing GTK display"""
        proposals = EtcProposalsStub()
        controller = EtcProposalsControllerStub()
        self.view = EtcProposalsView(proposals, controller)
        gtk.main()
        self.failIf(self.Failed, 'Test failed.')

    def gtk_passed(self):
        self.view.destroy()
        TestGtk.gtk_passed(self)
        
    def gtk_failed(self):
        self.view.destroy()
        TestGtk.gtk_failed(self)