Esempio n. 1
0
def test_parse_carrier_constant_path():
    expected = {
        "criterion_id": "clam",
    }
    path = CarrierConstantServiceClient.carrier_constant_path(**expected)

    # Check that the path construction is reversible.
    actual = CarrierConstantServiceClient.parse_carrier_constant_path(path)
    assert expected == actual
Esempio n. 2
0
def test_carrier_constant_path():
    criterion_id = "squid"
    expected = "carrierConstants/{criterion_id}".format(
        criterion_id=criterion_id, )
    actual = CarrierConstantServiceClient.carrier_constant_path(criterion_id)
    assert expected == actual