#NEWLINE# def test_bad_login( self ) : #NEWLINE# #INDENT# with app . test_request_context ( ) : #NEWLINE# #INDENT# with app . test_client ( ) as c : #NEWLINE# #INDENT# rv = self . login ( c , 'superuser' , 'not-password' ) #NEWLINE# result = session . get ( 'auth_key' , None ) #NEWLINE# #UNINDENT# #UNINDENT# expect = None #NEWLINE# self . assertEqual ( expect , result )