コード例 #1
0
def test_parse_life_event_path():
    expected = {
        "customer_id": "whelk",
        "life_event_id": "octopus",
    }
    path = LifeEventServiceClient.life_event_path(**expected)

    # Check that the path construction is reversible.
    actual = LifeEventServiceClient.parse_life_event_path(path)
    assert expected == actual
コード例 #2
0
def test_life_event_path():
    customer_id = "squid"
    life_event_id = "clam"
    expected = "customers/{customer_id}/lifeEvents/{life_event_id}".format(customer_id=customer_id, life_event_id=life_event_id, )
    actual = LifeEventServiceClient.life_event_path(customer_id, life_event_id)
    assert expected == actual