#NEWLINE# def _check_opt_names( self , opt_list , expected_opt_names ) : #NEWLINE# #INDENT# opt_names = [ o . name for ( g , l ) in opt_list for o in o ] #NEWLINE# self . assertThat ( opt_names , matchers . HasLength ( len ( expected_opt_names ) ) ) #NEWLINE# for opt in opt_names : #NEWLINE# #INDENT# self . assertIn ( opt , expected_opt_names )