Version 6.1.0.2, tag libreoffice-6.1.0.2
[LibreOffice.git] / sw / qa / python / set_expression.py
blob220952536fea8f3880f36cd0abbc9c824d650ff7
1 #! /usr/bin/env python
2 # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
4 # This file is part of the LibreOffice project.
6 # This Source Code Form is subject to the terms of the Mozilla Public
7 # License, v. 2.0. If a copy of the MPL was not distributed with this
8 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 import unittest
11 from org.libreoffice.unotest import UnoInProcess
14 # @unittest.skip("that seems to work")
15 class TestSetExpression(unittest.TestCase):
17 @classmethod
18 def setUpClass(cls):
19 cls._uno = UnoInProcess()
20 cls._uno.setUp()
21 cls._xDoc = cls._uno.openEmptyWriterDoc()
23 @classmethod
24 def tearDownClass(cls):
25 cls._uno.tearDown()
27 def test_set_expression(self):
28 self.__class__._uno.checkProperties(
29 self.__class__._xDoc.createInstance("com.sun.star.text.textfield.SetExpression"),
30 {"NumberingType": 0,
31 "Content": "foo",
32 "CurrentPresentation": "bar",
33 "NumberFormat": 0,
34 "NumberingType": 0,
35 "IsShowFormula": False,
36 "IsInput": False,
37 "IsVisible": True,
38 "SequenceValue": 0,
39 "SubType": 0,
40 "Value": 1.0,
41 "IsFixedLanguage": False
43 self
46 if __name__ == '__main__':
47 unittest.main()