code
stringlengths
3
6.57k
test_parse_release_path()
CloudDeployClient.release_path(**expected)
CloudDeployClient.parse_release_path(path)
test_rollout_path()
test_parse_rollout_path()
CloudDeployClient.rollout_path(**expected)
CloudDeployClient.parse_rollout_path(path)
test_target_path()
CloudDeployClient.target_path(project, location, target)
test_parse_target_path()
CloudDeployClient.target_path(**expected)
CloudDeployClient.parse_target_path(path)
test_worker_pool_path()
CloudDeployClient.worker_pool_path(project, location, worker_pool)
test_parse_worker_pool_path()
CloudDeployClient.worker_pool_path(**expected)
CloudDeployClient.parse_worker_pool_path(path)
test_common_billing_account_path()
CloudDeployClient.common_billing_account_path(billing_account)
test_parse_common_billing_account_path()
CloudDeployClient.common_billing_account_path(**expected)
CloudDeployClient.parse_common_billing_account_path(path)
test_common_folder_path()
format(folder=folder,)
CloudDeployClient.common_folder_path(folder)
test_parse_common_folder_path()
CloudDeployClient.common_folder_path(**expected)
CloudDeployClient.parse_common_folder_path(path)
test_common_organization_path()
format(organization=organization,)
CloudDeployClient.common_organization_path(organization)
test_parse_common_organization_path()
CloudDeployClient.common_organization_path(**expected)
CloudDeployClient.parse_common_organization_path(path)
test_common_project_path()
format(project=project,)
CloudDeployClient.common_project_path(project)
test_parse_common_project_path()
CloudDeployClient.common_project_path(**expected)
CloudDeployClient.parse_common_project_path(path)
test_common_location_path()
CloudDeployClient.common_location_path(project, location)
test_parse_common_location_path()
CloudDeployClient.common_location_path(**expected)
CloudDeployClient.parse_common_location_path(path)
test_client_with_default_client_info()
gapic_v1.client_info.ClientInfo()
ga_credentials.AnonymousCredentials()
prep.assert_called_once_with(client_info)
CloudDeployClient.get_transport_class()
ga_credentials.AnonymousCredentials()
prep.assert_called_once_with(client_info)
test_transport_close_async()
ga_credentials.AnonymousCredentials()
type(getattr(client.transport, "grpc_channel")
close.assert_not_called()
close.assert_called_once()
test_transport_close()
transports.items()
ga_credentials.AnonymousCredentials()
type(getattr(client.transport, close_name)
close.assert_not_called()
close.assert_called_once()
test_client_ctx()
ga_credentials.AnonymousCredentials()
mock.patch.object(type(client.transport)
close.assert_not_called()
close.assert_called()
test_api_key_credentials(client_class, transport_class)
mock.Mock()
client_options.ClientOptions()
mock.patch.object(transport_class, "__init__")
client_class(client_options=options)
func(img, param, **keywords)
assert_array_equal(out, expected)
img.astype(dt)
func(img_cast, param, **keywords)
expected.astype(dt)
assert_array_equal(out, exp_cast)
img.astype(np.float64)
expected.astype(np.float64)
data_float.astype(dt)
func(data_cast, param_cast, **keywords)
expected_float.astype(dt)
sum()
img.astype(np.int16)
expected.astype(np.int16)
img_signed.astype(dt)
func(img_s, param, **keywords)
exp_signed.astype(dt)
assert_array_equal(out, exp_s)
TestMaxtree(TestCase)
test_max_tree(self)
img.astype(img_type)
max_tree(img, connectivity=2)
assert_array_equal(P, P_exp)
assert_array_equal(S, S_exp)
img.astype(img_type)
max_tree(img_shifted, connectivity=2)
assert_array_equal(P, P_exp)