Пример #1
0
class PublishTest(unittest.TestCase):
    
    def setUp(self):       
        app = QtGui.QApplication(sys.argv) 
        self.project = Widget(6)     
        self.project.show()
        app.exec_()
    
    def testBtn(self):
        self.project.cancelBtnClicked()
Пример #2
0
 def setUp(self):       
     app = QtGui.QApplication(sys.argv) 
     self.project = Widget(6)     
     self.project.show()
     app.exec_()