

def testGridLayoutDetachListener(self):
    comp = Label()
    self._gridlayout.addComponent(comp)
    self.resetVariables()
    self._gridlayout.removeComponent(comp)
    self.assertEquals(1, self._detachCounter)
    self.assertEquals(comp, self._detachedComponent)
    comp.assertEquals(self._gridlayout, self._detachedTarget)
    self.assertFalse(self._foundInContainer)
    self.assertIsNone(self._componentArea)

dataset/ETHPy150Open rwl/muntjac/muntjac/test/server/components/component_attach_detach_listener_test.py ComponentAttachDetachListenerTest.testGridLayoutDetachListener/VarMisuse@62/82 `self`->`comp`