#NEWLINE# def test_deprecated_module( ) : #NEWLINE# #INDENT# with _test_deprecation ( ) as extract_deprecation_warning : #NEWLINE# #INDENT# deprecated_module ( FUTURE_VERSION , hint_message = 'Do not use me.' ) #NEWLINE# warning_message = str ( extract_deprecation_warning ( ) ) #NEWLINE# assert ( 'module will be removed' in warning_message ) #NEWLINE# assert ( 'Do not use me' in extract_deprecation_warning )