def test_mkdir_p_failure_permission(tmpdir): with pytest.raises(OSError): _util.mkdir_p('/asdf')
def test_mkdir_p_succcess_exists(tmpdir): _util.mkdir_p(tmpdir.join('test').strpath) _util.mkdir_p(tmpdir.join('test').strpath)