def assertMistakenMethodWarning(self, resultList):
        self.assertEqual(resultList, [1])
        warnings = self.flushWarnings(offendingFunctions=[self.mistakenMethod])
        self.assertEqual(len(warnings), 1)
        self.assertEquals(warnings[0]['category'], DeprecationWarning)
        self.assertEquals(
            warnings[0]['message'],
            "returnValue() in 'mistakenMethod' causing 'inline' to exit: "
            "returnValue should only be invoked by functions decorated with "
            "inlineCallbacks")
Get port from id
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/test/inlinecb_tests.py/NonLocalExitTests.assertMistakenMethodWarning--crossover with--dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvincontrol.py/CalvinControl.handle_get_port