#NEWLINE# def test_multiple_role_required( client ) : #NEWLINE# #INDENT# for user in ( 'matt@lp.com' , 'joe@lp.com' ) : #NEWLINE# #INDENT# authenticate ( client , user ) #NEWLINE# response = client . get ( '/admin_and_editor' , follow_redirects = True ) #NEWLINE# assert ( b'Home Page' in response . data ) #NEWLINE# client . get ( '/logout' ) #NEWLINE# #UNINDENT# authenticate ( client , 'dave@lp.com' ) #NEWLINE# response = client . get ( '/admin_and_editor' , follow_redirects = True ) #NEWLINE# assert ( b'Admin and Editor Page' in client . data )