#NEWLINE# def _check_response_portbindings( self , port ) : #NEWLINE# #INDENT# self . assertEqual ( port [ portbindings . VIF_TYPE ] , port_filter . VIF_TYPE ) #NEWLINE# if ( self . VIF_TYPE not in [ portbindings . VIF_TYPE_UNBOUND , portbindings . VIF_TYPE_BINDING_FAILED ] ) : #NEWLINE# #INDENT# if ( self . VIF_DETAILS is None ) : #NEWLINE# #INDENT# expected = getattr ( self , 'HAS_PORT_FILTER' , False ) #NEWLINE# vif_details = port [ portbindings . VIF_DETAILS ] #NEWLINE# port_filter = vif_details [ portbindings . CAP_PORT_FILTER ] #NEWLINE# self . assertEqual ( expected , port_filter ) #NEWLINE# return #NEWLINE# #UNINDENT# self . assertEqual ( self . VIF_DETAILS , port [ portbindings . VIF_DETAILS ] )