def test_asset_path(): customer_id = "squid" asset_id = "clam" expected = "customers/{customer_id}/assets/{asset_id}".format( customer_id=customer_id, asset_id=asset_id, ) actual = CampaignAssetServiceClient.asset_path(customer_id, asset_id) assert expected == actual
def test_parse_asset_path(): expected = { "customer_id": "whelk", "asset_id": "octopus", } path = CampaignAssetServiceClient.asset_path(**expected) # Check that the path construction is reversible. actual = CampaignAssetServiceClient.parse_asset_path(path) assert expected == actual