def test_common_organization_path(): organization = "scallop" expected = "organizations/{organization}".format( organization=organization, ) actual = IncomeRangeViewServiceClient.common_organization_path( organization) assert expected == actual
def test_parse_common_organization_path(): expected = { "organization": "abalone", } path = IncomeRangeViewServiceClient.common_organization_path(**expected) # Check that the path construction is reversible. actual = IncomeRangeViewServiceClient.parse_common_organization_path(path) assert expected == actual