[Libreoffice-commits] core.git: sw/qa
kerem
hallackerem at gmail.com
Tue Jan 3 17:19:40 UTC 2017
sw/qa/python/check_indexed_property_values.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
New commits:
commit 564bbaba573b565dfd7180ef20054ebf0297fe9b
Author: kerem <hallackerem at gmail.com>
Date: Fri Dec 23 00:41:31 2016 +0200
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 at canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen at canonical.com>
diff --git a/sw/qa/python/check_indexed_property_values.py b/sw/qa/python/check_indexed_property_values.py
index 8cbe616..5609aa4 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)
More information about the Libreoffice-commits
mailing list