예제 #1
0
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)
예제 #2
0
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)