2009-05-14 Mike Gorse <mgorse@novell.com>
[platform/core/uifw/at-spi2-atk.git] / tests / pyatspi / componenttest.py
index 41c8a7f..fe30c88 100644 (file)
@@ -39,12 +39,12 @@ class ComponentTest(_PasyTest):
                     ]
 
        def __init__(self, bus, path):
-               _PasyTest.__init__(self, "Accessible", False)
+               _PasyTest.__init__(self, "Component", False)
                self._bus = bus
                self._path = path
 
        def setup(self, test):
-               self._registry = pyatspi.registry.Registry(self._path)
+               self._registry = pyatspi.Registry()
                self._desktop = self._registry.getDesktop(0)
 
        def test_contains(self, test):
@@ -113,7 +113,7 @@ class ComponentTest(_PasyTest):
                        layer = comp.getLayer()
                        test.assertEqual(layer, expected, 
                                         "Layer not correct. Expected %d, Recieved %d"
-                                        % (layer, expected))
+                                        % (int(layer), int(expected)))
 
        def test_getMDIZOrder(self, test):
                root = self._desktop.getChildAtIndex(0)