Пример #1
0
def test_parse_extension_feed_item_path():
    expected = {
        "customer": "scallop",
        "extension_feed_item": "abalone",
    }
    path = ExtensionFeedItemServiceClient.extension_feed_item_path(**expected)

    # Check that the path construction is reversible.
    actual = ExtensionFeedItemServiceClient.parse_extension_feed_item_path(path)
    assert expected == actual
Пример #2
0
def test_extension_feed_item_path():
    customer = "winkle"
    extension_feed_item = "nautilus"
    expected = "customers/{customer}/extensionFeedItems/{extension_feed_item}".format(customer=customer, extension_feed_item=extension_feed_item, )
    actual = ExtensionFeedItemServiceClient.extension_feed_item_path(customer, extension_feed_item)
    assert expected == actual