Пример #1
0
def test_mkdir_p_failure_permission(tmpdir):
    with pytest.raises(OSError):
        _util.mkdir_p('/asdf')
Пример #2
0
def test_mkdir_p_succcess_exists(tmpdir):
    _util.mkdir_p(tmpdir.join('test').strpath)
    _util.mkdir_p(tmpdir.join('test').strpath)