def test_parse_click_view_path(): expected = { "customer": "cuttlefish", "click_view": "mussel", } path = ClickViewServiceClient.click_view_path(**expected) # Check that the path construction is reversible. actual = ClickViewServiceClient.parse_click_view_path(path) assert expected == actual
def test_click_view_path(): customer = "oyster" click_view = "nudibranch" expected = "customers/{customer}/clickViews/{click_view}".format(customer=customer, click_view=click_view, ) actual = ClickViewServiceClient.click_view_path(customer, click_view) assert expected == actual