diff options
author | kerem <hallackerem@gmail.com> | 2016-12-23 00:41:31 +0200 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@canonical.com> | 2017-01-03 17:19:19 +0000 |
commit | 564bbaba573b565dfd7180ef20054ebf0297fe9b (patch) | |
tree | 6deaa2dff47f006c3c0c967031d7517a0d28a2d4 | |
parent | ceab0bab9275394e8ac20e32a1d7828b4eb1f6ac (diff) |
tdf#97361: Changed method calls in check_indexed_property_values
Change-Id: Ia3afaf2abd0f0a56ccb56d4f967117f1adc52fb2
Reviewed-on: https://gerrit.libreoffice.org/32357
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
-rw-r--r-- | sw/qa/python/check_indexed_property_values.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/qa/python/check_indexed_property_values.py b/sw/qa/python/check_indexed_property_values.py index 8cbe6160aeee..5609aa4225cb 100644 --- a/sw/qa/python/check_indexed_property_values.py +++ b/sw/qa/python/check_indexed_property_values.py @@ -55,27 +55,27 @@ class CheckIndexedPropertyValues(unittest.TestCase): prop3 = uno.Any("[]com.sun.star.beans.PropertyValue", (p3,)) t = xCont.getElementType() - self.assertEqual(0, xCont.getCount(), "Initial container is not empty") + self.assertEqual(0, len(xCont), "Initial container is not empty") uno.invoke(xCont, "insertByIndex", (0, prop1)) - ret = xCont.getByIndex(0) + ret = xCont[0] self.assertEqual(p1.Name, ret[0].Name) self.assertEqual(p1.Value, ret[0].Value) uno.invoke(xCont, "replaceByIndex", (0, prop2)) - ret = xCont.getByIndex(0) + ret = xCont[0] self.assertEqual(p2.Name, ret[0].Name) self.assertEqual(p2.Value, ret[0].Value) xCont.removeByIndex(0) - self.assertTrue(not(xCont.hasElements()) and xCont.getCount() == 0, "Could not remove PropertyValue") + self.assertTrue(not(xCont.hasElements()) and len(xCont) == 0, "Could not remove PropertyValue") uno.invoke(xCont, "insertByIndex", (0, prop1)) uno.invoke(xCont, "insertByIndex", (1, prop2)) - self.assertTrue(xCont.hasElements() and xCont.getCount() == 2, "Did not insert PropertyValue") + self.assertTrue(xCont.hasElements() and len(xCont) == 2, "Did not insert PropertyValue") uno.invoke(xCont, "insertByIndex", (1, prop2)) uno.invoke(xCont, "insertByIndex", (1, prop3)) - ret = xCont.getByIndex(1) + ret = xCont[1] self.assertEqual(p3.Name, ret[0].Name) self.assertEqual(p3.Value, ret[0].Value) |