def test_keyword_view_path(): customer = "squid" keyword_view = "clam" expected = "customers/{customer}/keywordViews/{keyword_view}".format( customer=customer, keyword_view=keyword_view, ) actual = KeywordViewServiceClient.keyword_view_path(customer, keyword_view) assert expected == actual
def test_parse_keyword_view_path(): expected = { "customer": "whelk", "keyword_view": "octopus", } path = KeywordViewServiceClient.keyword_view_path(**expected) # Check that the path construction is reversible. actual = KeywordViewServiceClient.parse_keyword_view_path(path) assert expected == actual