コード例 #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
ファイル: test_core.py プロジェクト: cowlicks/castra
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
ファイル: test_core.py プロジェクト: cowlicks/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)