#NEWLINE# def test_unauthorized_access( client , get_message ) : #NEWLINE# #INDENT# authenticate ( client , 'joe@lp.com' ) #NEWLINE# response = client . get ( '/admin' , follow_redirects = True ) #NEWLINE# assert ( get_message ( 'UNAUTHORIZED' ) in response . data )