def test_flushed(self):
            warnings.warn(self.message, self.category)
            self.assertEqual(len(self.flushWarnings()), 1)
Generate a warning and flush it.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/trial/test/test_warning.py/Mask.MockTests.test_flushed