uitest: simplify assert

Change-Id: I8a511df34cd52ebc7b2535ef6977e42b3d4d04f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108232
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/sw/qa/uitest/writer_tests4/insertBreakDialog.py b/sw/qa/uitest/writer_tests4/insertBreakDialog.py
index 291ffda..6dda5b2 100644
--- a/sw/qa/uitest/writer_tests4/insertBreakDialog.py
+++ b/sw/qa/uitest/writer_tests4/insertBreakDialog.py
@@ -22,10 +22,7 @@ class WriterInsertBreakDialog(UITestCase):
    def getPages(self, total):
        document = self.ui_test.get_component()

        xCursor = document.getCurrentController().getViewCursor()
        xCursor.jumpToLastPage()

        self.assertEqual(xCursor.getPage(), total)
        self.assertEqual(document.CurrentController.PageCount, total)

    def test_insert_line_break(self):