def testBorder_02 (self): dlg = TableDialog (self.wnd) controller = TableDialogController (dlg, self._application.config) Tester.dialogTester.appendOk() dlg.borderWidth = 0 controller.showDialog() result = controller.getResult() validResult = u'''<table> <tr> <td></td> </tr> </table>''' self.assertEqual (result, validResult, result)
def testBorder_02 (self): suffix = u'' dlg = TableDialog (self.wnd) controller = TableDialogController (dlg, suffix, self._application.config) Tester.dialogTester.appendOk() dlg.borderWidth = 0 controller.showDialog() result = controller.getResult() validResult = u'''(:table:) (:row:) (:cell:) (:tableend:)''' self.assertEqual (result, validResult, result)
def testBorder_01(self): dlg = TableDialog(self.mainWindow) controller = TableDialogController(dlg, self.application.config) Tester.dialogTester.appendOk() dlg.borderWidth = 10 controller.showDialog() result = controller.getResult() validResult = '''<table border="10"> <tr> <td></td> </tr> </table>''' self.assertEqual(result, validResult, result)
def testBorder_02(self): suffix = u'' dlg = TableDialog(self.wnd) controller = TableDialogController(dlg, suffix, self._application.config) Tester.dialogTester.appendOk() dlg.borderWidth = 0 controller.showDialog() result = controller.getResult() validResult = u'''(:table:) (:row:) (:cell:) (:tableend:)''' self.assertEqual(result, validResult, result)