diff options
Diffstat (limited to 'tests/pyatspi/accessibletest.py')
-rw-r--r-- | tests/pyatspi/accessibletest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/pyatspi/accessibletest.py b/tests/pyatspi/accessibletest.py index d94e0af..6cd2cdd 100644 --- a/tests/pyatspi/accessibletest.py +++ b/tests/pyatspi/accessibletest.py @@ -110,9 +110,10 @@ class AccessibleTest(_PasyTest): root = self._desktop.getChildAtIndex(0) attr = root.getAttributes() res = ["foo:bar", "baz:qux", "quux:corge"] + attr.sort() + res.sort() test.assertEqual(attr, res, "Attributes expected %s, recieved %s" % (attr, res)) - def test_parent(self, test): root = self._desktop.getChildAtIndex(0) @@ -151,7 +152,7 @@ class AccessibleTest(_PasyTest): def test_getRole(self, test): root = self._desktop.getChildAtIndex(0) test.assertEqual(root.getRole(), 69, - "Expected role - \"69\". Recieved - \"%d\"" % (root.getRole(),)) + "Expected role - \"69\". Recieved - \"%d\"" % (int(root.getRole()),)) def test_getRoleName(self, test): root = self._desktop.getChildAtIndex(0) |