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 Tdf96561(UITestCase
):
15 def test_tdf96561(self
):
16 with
load_csv_file(self
, "tdf96561.csv", True):
19 document
= self
.ui_test
.get_component()
21 self
.assertEqual('Campo con ";" en medio', get_cell_by_position(document
, 0, 0, 0).getString())
23 # Without the fix in place, this test would have failed with
24 # AssertionError: '""; esta al """""principio del Campo' != 'Campo la tiene al final;"'
25 self
.assertEqual('""; esta al """""principio del Campo', get_cell_by_position(document
, 0, 0, 1).getString())
26 self
.assertEqual('Campo la tiene al final;"', get_cell_by_position(document
, 0, 0, 2).getString())
30 self
.assertEqual("1", get_cell_by_position(document
, 0, i
, j
).getString())
32 self
.ui_test
.close_doc()
34 # vim: set shiftwidth=4 softtabstop=4 expandtab: