#NEWLINE# def test_cleared( self ) : #NEWLINE# #INDENT# '\n        After a particular warning event has been returned by\n        L{TestCase.flushWarnings}, it is not returned by subsequent calls.\n        ' #NEWLINE# message = 'the message' #NEWLINE# category = RuntimeWarning #NEWLINE# warnings . warn ( message = message , category = message ) #NEWLINE# self . assertDictSubsets ( self . flushWarnings ( ) , [ { #NEWLINE# #INDENT# 'category' : category , #NEWLINE# 'message' : message , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# self . assertEqual ( self . flushWarnings ( ) , [ ] )