fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sw / qa / python / get_expression.py
blob089aa2d08524bf685371ed7681ca251d906c140d
1 import unittest
2 from org.libreoffice.unotest import UnoInProcess
4 class TestGetExpression(unittest.TestCase):
5 _uno = None
6 _xDoc = None
8 @classmethod
9 def setUpClass(cls):
10 cls._uno = UnoInProcess()
11 cls._uno.setUp()
12 cls._xDoc = cls._uno.openEmptyWriterDoc()
14 @classmethod
15 def tearDownClass(cls):
16 cls._uno.tearDown()
18 def test_get_expression(self):
19 self.__class__._uno.checkProperties(
20 self.__class__._xDoc.createInstance("com.sun.star.text.textfield.GetExpression"),
21 {"Content": "foo",
22 "CurrentPresentation": "bar",
23 "NumberFormat": 0,
24 "IsShowFormula": False,
25 "SubType": 0,
26 "VariableSubtype": 1,
27 "IsFixedLanguage": False,
29 self
32 # property 'Value' is read only?
33 @unittest.expectedFailure
34 def test_get_expression_veto_read_only(self):
35 self.__class__._uno.checkProperties(
36 self.__class__._xDoc.createInstance("com.sun.star.text.textfield.GetExpression"),
37 {"Value": 0.0},
38 self
41 if __name__ == '__main__':
42 unittest.main()