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()
def setUp(self): app = QtGui.QApplication(sys.argv) self.project = Widget(6) self.project.show() app.exec_()