

def testCSSLayoutDetachListener(self):
    comp = Label()
    comp._csslayout.addComponent(comp)
    self.resetVariables()
    self._csslayout.removeComponent(comp)
    self.assertEquals(1, self._detachCounter)
    self.assertEquals(comp, self._detachedComponent)
    self.assertEquals(self._csslayout, self._detachedTarget)
    self.assertFalse(self._foundInContainer)

dataset/ETHPy150Open rwl/muntjac/muntjac/test/server/components/component_attach_detach_listener_test.py ComponentAttachDetachListenerTest.testCSSLayoutDetachListener/VarMisuse@16/22 `self`->`comp`