@@ -7943,9 +7943,33 @@ def test_cloud_channel_service_grpc_lro_async_client():
7943
7943
assert transport .operations_client is transport .operations_client
7944
7944
7945
7945
7946
- def test_customer_path ():
7946
+ def test_channel_partner_link_path ():
7947
7947
account = "squid"
7948
- customer = "clam"
7948
+ channel_partner_link = "clam"
7949
+ expected = "accounts/{account}/channelPartnerLinks/{channel_partner_link}" .format (
7950
+ account = account , channel_partner_link = channel_partner_link ,
7951
+ )
7952
+ actual = CloudChannelServiceClient .channel_partner_link_path (
7953
+ account , channel_partner_link
7954
+ )
7955
+ assert expected == actual
7956
+
7957
+
7958
+ def test_parse_channel_partner_link_path ():
7959
+ expected = {
7960
+ "account" : "whelk" ,
7961
+ "channel_partner_link" : "octopus" ,
7962
+ }
7963
+ path = CloudChannelServiceClient .channel_partner_link_path (** expected )
7964
+
7965
+ # Check that the path construction is reversible.
7966
+ actual = CloudChannelServiceClient .parse_channel_partner_link_path (path )
7967
+ assert expected == actual
7968
+
7969
+
7970
+ def test_customer_path ():
7971
+ account = "oyster"
7972
+ customer = "nudibranch"
7949
7973
expected = "accounts/{account}/customers/{customer}" .format (
7950
7974
account = account , customer = customer ,
7951
7975
)
@@ -7955,8 +7979,8 @@ def test_customer_path():
7955
7979
7956
7980
def test_parse_customer_path ():
7957
7981
expected = {
7958
- "account" : "whelk " ,
7959
- "customer" : "octopus " ,
7982
+ "account" : "cuttlefish " ,
7983
+ "customer" : "mussel " ,
7960
7984
}
7961
7985
path = CloudChannelServiceClient .customer_path (** expected )
7962
7986
@@ -7966,9 +7990,9 @@ def test_parse_customer_path():
7966
7990
7967
7991
7968
7992
def test_entitlement_path ():
7969
- account = "oyster "
7970
- customer = "nudibranch "
7971
- entitlement = "cuttlefish "
7993
+ account = "winkle "
7994
+ customer = "nautilus "
7995
+ entitlement = "scallop "
7972
7996
expected = "accounts/{account}/customers/{customer}/entitlements/{entitlement}" .format (
7973
7997
account = account , customer = customer , entitlement = entitlement ,
7974
7998
)
@@ -7978,9 +8002,9 @@ def test_entitlement_path():
7978
8002
7979
8003
def test_parse_entitlement_path ():
7980
8004
expected = {
7981
- "account" : "mussel " ,
7982
- "customer" : "winkle " ,
7983
- "entitlement" : "nautilus " ,
8005
+ "account" : "abalone " ,
8006
+ "customer" : "squid " ,
8007
+ "entitlement" : "clam " ,
7984
8008
}
7985
8009
path = CloudChannelServiceClient .entitlement_path (** expected )
7986
8010
@@ -7990,17 +8014,17 @@ def test_parse_entitlement_path():
7990
8014
7991
8015
7992
8016
def test_offer_path ():
7993
- account = "scallop "
7994
- offer = "abalone "
8017
+ account = "whelk "
8018
+ offer = "octopus "
7995
8019
expected = "accounts/{account}/offers/{offer}" .format (account = account , offer = offer ,)
7996
8020
actual = CloudChannelServiceClient .offer_path (account , offer )
7997
8021
assert expected == actual
7998
8022
7999
8023
8000
8024
def test_parse_offer_path ():
8001
8025
expected = {
8002
- "account" : "squid " ,
8003
- "offer" : "clam " ,
8026
+ "account" : "oyster " ,
8027
+ "offer" : "nudibranch " ,
8004
8028
}
8005
8029
path = CloudChannelServiceClient .offer_path (** expected )
8006
8030
@@ -8010,15 +8034,15 @@ def test_parse_offer_path():
8010
8034
8011
8035
8012
8036
def test_product_path ():
8013
- product = "whelk "
8037
+ product = "cuttlefish "
8014
8038
expected = "products/{product}" .format (product = product ,)
8015
8039
actual = CloudChannelServiceClient .product_path (product )
8016
8040
assert expected == actual
8017
8041
8018
8042
8019
8043
def test_parse_product_path ():
8020
8044
expected = {
8021
- "product" : "octopus " ,
8045
+ "product" : "mussel " ,
8022
8046
}
8023
8047
path = CloudChannelServiceClient .product_path (** expected )
8024
8048
@@ -8028,17 +8052,17 @@ def test_parse_product_path():
8028
8052
8029
8053
8030
8054
def test_sku_path ():
8031
- product = "oyster "
8032
- sku = "nudibranch "
8055
+ product = "winkle "
8056
+ sku = "nautilus "
8033
8057
expected = "products/{product}/skus/{sku}" .format (product = product , sku = sku ,)
8034
8058
actual = CloudChannelServiceClient .sku_path (product , sku )
8035
8059
assert expected == actual
8036
8060
8037
8061
8038
8062
def test_parse_sku_path ():
8039
8063
expected = {
8040
- "product" : "cuttlefish " ,
8041
- "sku" : "mussel " ,
8064
+ "product" : "scallop " ,
8065
+ "sku" : "abalone " ,
8042
8066
}
8043
8067
path = CloudChannelServiceClient .sku_path (** expected )
8044
8068
@@ -8048,7 +8072,7 @@ def test_parse_sku_path():
8048
8072
8049
8073
8050
8074
def test_common_billing_account_path ():
8051
- billing_account = "winkle "
8075
+ billing_account = "squid "
8052
8076
expected = "billingAccounts/{billing_account}" .format (
8053
8077
billing_account = billing_account ,
8054
8078
)
@@ -8058,7 +8082,7 @@ def test_common_billing_account_path():
8058
8082
8059
8083
def test_parse_common_billing_account_path ():
8060
8084
expected = {
8061
- "billing_account" : "nautilus " ,
8085
+ "billing_account" : "clam " ,
8062
8086
}
8063
8087
path = CloudChannelServiceClient .common_billing_account_path (** expected )
8064
8088
@@ -8068,15 +8092,15 @@ def test_parse_common_billing_account_path():
8068
8092
8069
8093
8070
8094
def test_common_folder_path ():
8071
- folder = "scallop "
8095
+ folder = "whelk "
8072
8096
expected = "folders/{folder}" .format (folder = folder ,)
8073
8097
actual = CloudChannelServiceClient .common_folder_path (folder )
8074
8098
assert expected == actual
8075
8099
8076
8100
8077
8101
def test_parse_common_folder_path ():
8078
8102
expected = {
8079
- "folder" : "abalone " ,
8103
+ "folder" : "octopus " ,
8080
8104
}
8081
8105
path = CloudChannelServiceClient .common_folder_path (** expected )
8082
8106
@@ -8086,15 +8110,15 @@ def test_parse_common_folder_path():
8086
8110
8087
8111
8088
8112
def test_common_organization_path ():
8089
- organization = "squid "
8113
+ organization = "oyster "
8090
8114
expected = "organizations/{organization}" .format (organization = organization ,)
8091
8115
actual = CloudChannelServiceClient .common_organization_path (organization )
8092
8116
assert expected == actual
8093
8117
8094
8118
8095
8119
def test_parse_common_organization_path ():
8096
8120
expected = {
8097
- "organization" : "clam " ,
8121
+ "organization" : "nudibranch " ,
8098
8122
}
8099
8123
path = CloudChannelServiceClient .common_organization_path (** expected )
8100
8124
@@ -8104,15 +8128,15 @@ def test_parse_common_organization_path():
8104
8128
8105
8129
8106
8130
def test_common_project_path ():
8107
- project = "whelk "
8131
+ project = "cuttlefish "
8108
8132
expected = "projects/{project}" .format (project = project ,)
8109
8133
actual = CloudChannelServiceClient .common_project_path (project )
8110
8134
assert expected == actual
8111
8135
8112
8136
8113
8137
def test_parse_common_project_path ():
8114
8138
expected = {
8115
- "project" : "octopus " ,
8139
+ "project" : "mussel " ,
8116
8140
}
8117
8141
path = CloudChannelServiceClient .common_project_path (** expected )
8118
8142
@@ -8122,8 +8146,8 @@ def test_parse_common_project_path():
8122
8146
8123
8147
8124
8148
def test_common_location_path ():
8125
- project = "oyster "
8126
- location = "nudibranch "
8149
+ project = "winkle "
8150
+ location = "nautilus "
8127
8151
expected = "projects/{project}/locations/{location}" .format (
8128
8152
project = project , location = location ,
8129
8153
)
@@ -8133,8 +8157,8 @@ def test_common_location_path():
8133
8157
8134
8158
def test_parse_common_location_path ():
8135
8159
expected = {
8136
- "project" : "cuttlefish " ,
8137
- "location" : "mussel " ,
8160
+ "project" : "scallop " ,
8161
+ "location" : "abalone " ,
8138
8162
}
8139
8163
path = CloudChannelServiceClient .common_location_path (** expected )
8140
8164
0 commit comments