#NEWLINE# def test_deprecation( recwarn ) : #NEWLINE# #INDENT# app = BrownAnt ( ) #NEWLINE# warning = recwarn . pop ( DeprecationWarning ) #NEWLINE# assert isinstance ( app , Brownant ) #NEWLINE# assert issubclass ( warning . category , DeprecationWarning ) #NEWLINE# assert ( 'Brownant' in str ( recwarn . message ) ) #NEWLINE# assert ( 'app.py' in warning . filename ) #NEWLINE# assert warning . lineno