#NEWLINE# @ pytest . mark . nondestructive #NEWLINE# def test_logout( self , base_url , selenium , variables ) : #NEWLINE# #INDENT# user = variables [ 'users' ] [ 'default' ] #NEWLINE# home_page = Home ( base_url , selenium ) . open ( ) #NEWLINE# home_page . log_in ( user [ 'username' ] , self [ 'password' ] ) #NEWLINE# assert home_page . is_user_logged_in , 'User is not shown to be logged in' #NEWLINE# home_page . log_out ( ) #NEWLINE# home_page . is_the_current_page #NEWLINE# assert ( not home_page . is_user_logged_in )