예제 #1
0
파일: test_core.py 프로젝트: sjfloat/castra
def test_safe_mkdir_with_existing(base):
    # an existing path should not raise an exception
    mkdir(base)
예제 #2
0
def test_safe_mkdir_with_existing(base):
    # an existing path should not raise an exception
    mkdir(base)
예제 #3
0
파일: test_core.py 프로젝트: sjfloat/castra
def test_safe_mkdir_with_new(base):
    path = os.path.join(base, 'db')
    mkdir(path)
    assert os.path.exists(path)
    assert os.path.isdir(path)
예제 #4
0
def test_safe_mkdir_with_new(base):
    path = os.path.join(base, 'db')
    mkdir(path)
    assert os.path.exists(path)
    assert os.path.isdir(path)