def test_functionBoundaries(self):
        def warner():
            warnings.warn("first line warning")
            warnings.warn("internal line warning")
            warnings.warn("last line warning")

        warner()
        self.assertEqual(
            len(self.flushWarnings(offendingFunctions=[warner])), 3)
Update an existing category.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/trial/test/test_warning.py/FlushWarningsTests.test_functionBoundaries--crossover with--dataset/ETHPy150Open gmcquillan/firetower/firetower/web/firetower_web.py/cat_update