#NEWLINE# def test_index( testbed , login ) : #NEWLINE# #INDENT# app = webtest . TestApp ( main . app ) #NEWLINE# response = app . get ( '/' ) #NEWLINE# assert ( 'Login' in response . body ) #NEWLINE# login ( ) #NEWLINE# response = app . get ( '/' ) #NEWLINE# assert ( 'Logout' in response . body ) #NEWLINE# assert ( 'user@example.com' in response . body )