'After a particular warning event has been returned by C{flushWarnings},
it is not returned by subsequent calls.'

def test_cleared(self):

    message = 'the    message'
    category = RuntimeWarning
    warnings.warn(message=message, category=category)
    self.assertDictSubsets(self.flushWarnings(), [{'category': category, 'message': message}])
    self.assertEqual(self.flushWarnings(), [])
