#NEWLINE# def test_update_servicechain_spec( self ) : #NEWLINE# #INDENT# servicechain_spec_id = _uuid ( ) #NEWLINE# update_data = { #NEWLINE# #INDENT# 'servicechain_spec' : cm . get_update_servicechain_spec_attrs ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# expected_value = { #NEWLINE# #INDENT# 'tenant_id' : _uuid ( ) , #NEWLINE# 'id' : servicechain_spec_id , #NEWLINE# #UNINDENT# } #NEWLINE# self . instance . update_servicechain_spec . return_value = expected_value #NEWLINE# res = self . api . put ( _get_path ( SERVICECHAIN_SPECS_URI , id = servicechain_spec_id , fmt = self . fmt ) , self . serialize ( update_data ) ) #NEWLINE# self . instance . update_servicechain_spec . assert_called_once_with ( mock . ANY , servicechain_spec_id , servicechain_spec = update_data ) #NEWLINE# self . assertEqual ( exc . HTTPOk . code , res . status_int ) #NEWLINE# res = self . deserialize ( res ) #NEWLINE# self . assertIn ( 'servicechain_spec' , res ) #NEWLINE# self . assertEqual ( expected_value , res [ 'servicechain_spec' ] )