Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit d837a8c0 authored by Pino Toscano's avatar Pino Toscano

python: simplify dicts comparisons

unittests supports it already, so no need to code it manually.
parent babf591e
......@@ -119,11 +119,8 @@ class TestKross(unittest.TestCase):
def testVariantMap(self):
def doTestVariantMap(vmap):
rmap = self.object1.func_qvariantmap_qvariantmap(vmap)
self.assertEqual(len(rmap), len(vmap))
for k in vmap:
self.assertEqual(rmap[k], vmap[k])
doTestVariantMap({"3": -837, "1": 73682, "2": 285})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment