def test_parse_session_entity_type_path(): expected = { "project": "abalone", "session": "squid", "entity_type": "clam", } path = SessionsClient.session_entity_type_path(**expected) # Check that the path construction is reversible. actual = SessionsClient.parse_session_entity_type_path(path) assert expected == actual
def test_session_entity_type_path(): project = "winkle" session = "nautilus" entity_type = "scallop" expected = "projects/{project}/agent/sessions/{session}/entityTypes/{entity_type}".format( project=project, session=session, entity_type=entity_type, ) actual = SessionsClient.session_entity_type_path(project, session, entity_type) assert expected == actual