def testCleanup(self): """ Tests the if _clean method clears reactor """ obj = Gobj() defe = OnEventDeferred(obj, "ok") defe._clean()