Exemplo n.º 1
0
    def testSortByEdit(self):
        controller = ChildListDialogController(self._dialog)

        Tester.dialogTester.appendOk()
        self._dialog.selectedSort = 3
        self._dialog.isDescend = False

        result = controller.getDialogResult()

        self.assertEqual(result, "(:childlist sort=edit:)")
Exemplo n.º 2
0
    def testSortByEdit (self):
        controller = ChildListDialogController (self._dialog)

        Tester.dialogTester.appendOk()
        self._dialog.selectedSort = 3
        self._dialog.isDescend = False

        result = controller.getDialogResult()

        self.assertEqual (result, u"(:childlist sort=edit:)")
Exemplo n.º 3
0
    def testSortByCreationDescend(self):
        controller = ChildListDialogController(self._dialog)

        Tester.dialogTester.appendOk()
        self._dialog.selectedSort = 2
        self._dialog.isDescend = True

        result = controller.getDialogResult()

        self.assertEqual(result, "(:childlist sort=descendcreation:)")
Exemplo n.º 4
0
    def testSortByCreationDescend (self):
        controller = ChildListDialogController (self._dialog)

        Tester.dialogTester.appendOk()
        self._dialog.selectedSort = 2
        self._dialog.isDescend = True

        result = controller.getDialogResult()

        self.assertEqual (result, u"(:childlist sort=descendcreation:)")
Exemplo n.º 5
0
    def testSortByOrderDescend (self):
        controller = ChildListDialogController (self._dialog)

        Tester.dialogTester.appendOk()
        self._dialog.selectedSort = 0
        self._dialog.isDescend = True

        result = controller.getDialogResult()

        self.assertEqual (result, u"(:childlist sort=descendorder:)")
Exemplo n.º 6
0
    def testSortByOrderDescend(self):
        controller = ChildListDialogController(self._dialog)

        Tester.dialogTester.appendOk()
        self._dialog.selectedSort = 0
        self._dialog.isDescend = True

        result = controller.getDialogResult()

        self.assertEqual(result, "(:childlist sort=descendorder:)")
Exemplo n.º 7
0
    def testCancel(self):
        controller = ChildListDialogController(self._dialog)
        Tester.dialogTester.appendCancel()
        result = controller.getDialogResult()

        self.assertEqual(result, None)
Exemplo n.º 8
0
    def testCancel (self):
        controller = ChildListDialogController (self._dialog)
        Tester.dialogTester.appendCancel()
        result = controller.getDialogResult()

        self.assertEqual (result, None)