#NEWLINE# def test_quit_a_closed_browser( self ) : #NEWLINE# #INDENT# message = '' #NEWLINE# browser = Selenate ( ) #NEWLINE# browser . get ( 'http://www.github.com/wmak/selenate' ) #NEWLINE# browser . quit ( ) #NEWLINE# try : #NEWLINE# #INDENT# browser . quit ( ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# message = e . msg #NEWLINE# #UNINDENT# self . assertTrue ( message ) #NEWLINE# self . assertEqual ( browser , 'The browser died before you could complete that action' )