def testOkPressed(self):
     """Check that the widget is closed when OK clicked"""
     r = Report()
     dlg = ReportDialog(r)
     dlg.show()
     self.assertTrue(dlg.isVisible())
     dlg.close()
     self.assertFalse(dlg.isVisible())
Ejemplo n.º 2
0
 def testOkPressed(self):
     """test the widget is closed."""
     # preconditions
     r = Report()
     dlg = ReportDialog(r)  # dlg.resultsTree is a QTreeWidget
     dlg.show()
     # do test
     self.assertTrue(dlg.isVisible())
     dlg.close()
     self.assertFalse(dlg.isVisible())
 def testOkPressed(self):
     """test the widget is closed."""
     # preconditions
     r = Report()
     dlg = ReportDialog(r)  # dlg.resultsTree is a QTreeWidget
     dlg.show()
     # do test
     self.assertTrue(dlg.isVisible())
     dlg.close()
     self.assertFalse(dlg.isVisible())