bump product version to 4.1.6.2
[LibreOffice.git] / sw / qa / python / set_expression.py
blob6a24ff7b0b909d3a8ae04aeddb63c64cdf994f1c
1 import unittest
2 from org.libreoffice.unotest import UnoInProcess
4 #@unittest.skip("that seems to work")
5 class TestSetExpresion(unittest.TestCase):
6 _uno = None
7 _xDoc = None
9 @classmethod
10 def setUpClass(cls):
11 cls._uno = UnoInProcess()
12 cls._uno.setUp()
13 cls._xDoc = cls._uno.openEmptyWriterDoc()
15 @classmethod
16 def tearDownClass(cls):
17 cls._uno.tearDown()
19 def test_set_expression(self):
20 self.__class__._uno.checkProperties(
21 self.__class__._xDoc.createInstance("com.sun.star.text.textfield.SetExpression"),
22 {"NumberingType": 0,
23 "Content": "foo",
24 "CurrentPresentation": "bar",
25 "NumberFormat": 0,
26 "NumberingType": 0,
27 "IsShowFormula": False,
28 "IsInput": False,
29 "IsVisible": True,
30 "SequenceValue": 0,
31 "SubType": 0,
32 "Value": 1.0,
33 "IsFixedLanguage": False
35 self
38 if __name__ == '__main__':
39 unittest.main()