tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / qa / uitest / csv_dialog / tdf57841.py
blob3fb4da921ef83167abf8b977b5eda48c9201fad3
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):
17 pass
19 document = self.ui_test.get_component()
21 # Without the fix in place, this test would have failed with
22 # AssertionError: '2' != ''
23 for i in range(4):
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: