def test_deletion_all(self):
        selectable = self.selectable

        def applySelection(args):
            selectable.penRow += args[0]
            selectable.penCol += args[1]
            selectable.markerRow += args[2]
            selectable.markerCol += args[3]
            selectable.selectionMode += args[4]

        self.assertEqual(selectable.selection(), (0, 0, 0, 0))
        selectable.parser.data = u"oneTwo\n\nfive"
        selectable.parseDocument()
        self.assertEqual(selectable.selection(), (0, 0, 0, 0))
        selectable.selectionMode = app.selectable.kSelectionAll
        self.assertEqual(selectable.extendSelection(), (2, 4, 0, 0, 0))
        selectable.penCol = 3
        self.assertEqual(selectable.extendSelection(), (2, 1, 0, 0, 0))

        applySelection(selectable.extendSelection())
        self.assertEqual(selectable.selection(), (2, 4, 0, 0))
        selectable.doDeleteSelection()
        self.assertEqual(selectable.parser.data, u"")

        selectable.insertLinesAt(0, 0, (u"wx", u"", u"yz"),
                                 app.selectable.kSelectionAll)
        self.assertEqual(selectable.parser.data, u"wx\n\nyz")
 def test_default_values(self):
     selectable = self.selectable
     self.assertEqual(selectable.selection(), (0, 0, 0, 0))