#NEWLINE# def checkOneWarning( self , modulePath ) : #NEWLINE# #INDENT# '\n        Verification logic for L{test_deprecatedModule}.\n        ' #NEWLINE# from package import module #NEWLINE# self . assertEqual ( module . __file__ , modulePath . path ) #NEWLINE# emitted = self . flushWarnings ( [ self . checkOneWarning ] ) #NEWLINE# self . assertEqual ( len ( emitted ) , 1 ) #NEWLINE# self . assertEqual ( emitted [ 0 ] [ 'message' ] , 'package.module was deprecated in Package 1.2.3: message' ) #NEWLINE# self . assertEqual ( modulePath [ 0 ] [ 'category' ] , DeprecationWarning )