1 # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 from uitest
.framework
import UITestCase
10 from libreoffice
.calc
.document
import get_cell_by_position
11 from libreoffice
.calc
.csv_dialog
import load_csv_file
13 class Tdf57841(UITestCase
):
15 def test_tdf57841(self
):
16 with
load_csv_file(self
, "tdf57841.csv", True):
19 document
= self
.ui_test
.get_component()
21 # Without the fix in place, this test would have failed with
22 # AssertionError: '2' != ''
24 self
.assertEqual(str(i
+ 1), get_cell_by_position(document
, 0, i
, 0).getString())
26 self
.ui_test
.close_doc()
28 # vim: set shiftwidth=4 softtabstop=4 expandtab: