def test_sphinx_doc_plugin___makedirs_existing_dir(os_mock): """ Test :py:meth:`.SphinxDocPlugin._makedirs` for existing dir. """ os_mock.makedirs.side_effect = OSError() os_mock.makedirs.side_effect.errno = errno.EEXIST SphinxDocPlugin._makedirs('/a/b/c/d')
def test_sphinx_doc_plugin___makedirs_existing_dir(os_mock): """ Test :py:meth:`.SphinxDocPlugin._makedirs` for existing dir. """ os_mock.makedirs.side_effect = OSError() os_mock.makedirs.side_effect.errno = errno.EEXIST SphinxDocPlugin._makedirs('/a/b/c/d')
def test_sphinx_doc_plugin___makedirs_success(os_mock): """ Test :py:meth:`.SphinxDocPlugin._makedirs`. """ SphinxDocPlugin._makedirs('/a/b/c/d') assert_equal(os_mock.makedirs.call_count, 1) assert_equal(os_mock.makedirs.call_args, (('/a/b/c/d', ), {}))
def test_sphinx_doc_plugin___makedirs_success(os_mock): """ Test :py:meth:`.SphinxDocPlugin._makedirs`. """ SphinxDocPlugin._makedirs('/a/b/c/d') assert_equal(os_mock.makedirs.call_count, 1) assert_equal(os_mock.makedirs.call_args, (('/a/b/c/d',), {}))