2 from org
.libreoffice
.unotest
import UnoInProcess
4 class TestGetExpression(unittest
.TestCase
):
10 cls
._uno
= UnoInProcess()
12 cls
._xDoc
= cls
._uno
.openEmptyWriterDoc()
15 def tearDownClass(cls
):
18 def test_get_expression(self
):
19 self
.__class
__._uno
.checkProperties(
20 self
.__class
__._xDoc
.createInstance("com.sun.star.text.textfield.GetExpression"),
22 "CurrentPresentation": "bar",
24 "IsShowFormula": False,
27 "IsFixedLanguage": False,
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"),
41 if __name__
== '__main__':