Beispiel #1
0
def test_geo_target_constant_path():
    geo_target_constant = "oyster"
    expected = "geoTargetConstants/{geo_target_constant}".format(
        geo_target_constant=geo_target_constant, )
    actual = FeedItemTargetServiceClient.geo_target_constant_path(
        geo_target_constant)
    assert expected == actual
Beispiel #2
0
def test_parse_geo_target_constant_path():
    expected = {
        "geo_target_constant": "nudibranch",
    }
    path = FeedItemTargetServiceClient.geo_target_constant_path(**expected)

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