

def testGridLayoutAttachListener(self):
    self.resetVariables()
    comp = Label()
    self._gridlayout.addComponent(comp)
    self.assertEquals(1, self._attachCounter)
    self.assertEquals(comp, self._attachedComponent)
    self.assertEquals(self._gridlayout, self._attachTarget)
    self.assertTrue(self._foundInContainer)
    self.assertIsNotNone(self._componentArea)

dataset/ETHPy150Open rwl/muntjac/muntjac/test/server/components/component_attach_detach_listener_test.py ComponentAttachDetachListenerTest.testGridLayoutAttachListener/original