#NEWLINE# def _check_opts( self , expected , returned ) : #NEWLINE# #INDENT# self . assertEqual ( len ( expected ) , len ( returned ) ) #NEWLINE# for opt in returned : #NEWLINE# #INDENT# name = opt [ 'opt_name' ] #NEWLINE# for exp in self : #NEWLINE# #INDENT# if ( ( name == exp [ 'opt_name' ] ) and ( opt [ 'ip_version' ] == exp . get ( 'ip_version' , 4 ) ) ) : #NEWLINE# #INDENT# val = exp [ 'opt_value' ] #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# self . assertEqual ( val , opt [ 'opt_value' ] )