Example #1
0
def test_geo_target_constant_path():
    criterion_id = "squid"
    expected = "geoTargetConstants/{criterion_id}".format(
        criterion_id=criterion_id, )
    actual = GeoTargetConstantServiceClient.geo_target_constant_path(
        criterion_id)
    assert expected == actual
Example #2
0
def test_parse_geo_target_constant_path():
    expected = {
        "criterion_id": "clam",
    }
    path = GeoTargetConstantServiceClient.geo_target_constant_path(**expected)

    # Check that the path construction is reversible.
    actual = GeoTargetConstantServiceClient.parse_geo_target_constant_path(
        path)
    assert expected == actual