#NEWLINE# def test_suppressClass( self ) : #NEWLINE# #INDENT# '\n        A suppression set on a L{SynchronousTestCase} subclass prevents warnings\n        emitted by any test methods defined on that class which match the\n        suppression from being emitted.\n        ' #NEWLINE# self . runTests ( self . loader . loadMethod ( self . TestSuppression . testSuppressClass ) ) #NEWLINE# warningsShown = self . flushWarnings ( [ self . TestSuppression . _emit ] ) #NEWLINE# self . assertEqual ( warningsShown [ 0 ] [ 'message' ] , suppression . METHOD_WARNING_MSG ) #NEWLINE# self . assertEqual ( warningsShown [ 1 ] [ 'message' ] , suppression . MODULE_WARNING_MSG ) #NEWLINE# self . assertEqual ( len ( warningsShown ) , 2 )