コード例 #1
0
ファイル: test_node.py プロジェクト: hbradleyiii/ext_pylib
def test_node_exists(mock_path_exists, atts, expected):
    """Tests node's exist method."""
    mock_path_exists.return_value = expected
    node = Node(atts)
    assert expected == node.exists()
    if atts['path'] is not None:
        mock_path_exists.assert_called_once_with(atts['path'])