#NEWLINE# def test_close_others_expect_close_all_other_open_windows( self ) : #NEWLINE# #INDENT# current = self . browser . windows . current #NEWLINE# self . browser . find_by_id ( 'open-popup' ) . click ( ) #NEWLINE# current . close_others ( ) #NEWLINE# self . assertEqual ( self . browser . windows [ 0 ] , self ) #NEWLINE# self . assertEqual ( len ( self . browser . windows ) , 1 )