def test_project_node_delete(): "Does ProjectNode.external_delete talk to Asana correctly?" node = mock_project_node({'id': 1}) node.external_delete() node._delete.assert_called_with(node.id)
def test_projectified_task_node_delete(): "Does TaskNode.external_delete talk to Asana correctly?" node = mock_task_node({'id': 1, 'project_id': 1}) node.external_delete() node._task_delete.assert_called_with(node.id) node._project_delete.assert_called_with(node.project_id)