def test_ad_group_extension_setting_path(): customer = "oyster" ad_group_extension_setting = "nudibranch" expected = "customers/{customer}/adGroupExtensionSettings/{ad_group_extension_setting}".format( customer=customer, ad_group_extension_setting=ad_group_extension_setting, ) actual = AdGroupExtensionSettingServiceClient.ad_group_extension_setting_path( customer, ad_group_extension_setting) assert expected == actual
def test_parse_ad_group_extension_setting_path(): expected = { "customer": "cuttlefish", "ad_group_extension_setting": "mussel", } path = AdGroupExtensionSettingServiceClient.ad_group_extension_setting_path( **expected) # Check that the path construction is reversible. actual = AdGroupExtensionSettingServiceClient.parse_ad_group_extension_setting_path( path) assert expected == actual