Example #1
0
def test_ensure_path_exists_exists():
	ensure_path_exists(constants.kTestDirectory)
	assert os.path.exists(constants.kTestDirectory)
	ensure_path_exists(constants.kTestDirectory)
	shutil.rmtree(constants.kTestDirectory)
Example #2
0
def test_ensure_path_exists_exists():
    ensure_path_exists(constants.kTestDirectory)
    assert os.path.exists(constants.kTestDirectory)
    ensure_path_exists(constants.kTestDirectory)
    shutil.rmtree(constants.kTestDirectory)
Example #3
0
def test_ensure_path_exists_no_permission():
	with pytest.raises(OSError):
		ensure_path_exists('/xxxxx/yyyy')
Example #4
0
def test_ensure_path_exists_no_permission():
    with pytest.raises(OSError):
        ensure_path_exists('/xxxxx/yyyy')