summaryrefslogtreecommitdiff
path: root/unotest
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2013-04-27 11:33:21 +0200
committerDavid Ostrovsky <david@ostrovsky.org>2013-04-27 11:56:30 +0200
commit3c0a9bb59ed19b2f4492defd84d023c5e169d777 (patch)
tree35b0e4c0a506684b0841ab8a591271af9afb5d90 /unotest
parentefc4761686b9c566d9a45fb9ab3984d7704603ba (diff)
fdo#55814 migrate java unit test to python
Change-Id: Ib7ef29354f5d43abd9e67745dd6d3fccaec8612e
Diffstat (limited to 'unotest')
-rw-r--r--unotest/source/python/org/libreoffice/unotest.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/unotest/source/python/org/libreoffice/unotest.py b/unotest/source/python/org/libreoffice/unotest.py
index 586248466931..3ec016adfda4 100644
--- a/unotest/source/python/org/libreoffice/unotest.py
+++ b/unotest/source/python/org/libreoffice/unotest.py
@@ -127,7 +127,7 @@ class OfficeConnection(object):
def getContext(self):
return self.xContext
-class UnoConnection:
+class UnoRemoteConnection:
def __init__(self, args):
self.args = args
self.connection = None
@@ -187,6 +187,10 @@ class UnoInProcess:
value = obj.getPropertyValue(k)
test.assertEqual(value, v)
+ def setProperties(self, obj, dict):
+ for k,v in dict.items():
+ obj.setPropertyValue(k, v)
+
def postTest(self):
assert(self.xContext)
def tearDown(self):