Beispiel #1
0
def test_writeable_savesingle(tmpdir):
    fp = 'test_writeable.pyn'
    fp = str(tmpdir.join(fp))
    assert filer.writeable(fp, True)
Beispiel #2
0
def test_writeable_not_savesingle_no_related_dir(tmpdir):
    fp = 'test_writeable.pyn'
    fp = str(tmpdir.join(fp))
    assert not filer.writeable(fp, False)
Beispiel #3
0
def test_writeable_not_savesingle_with_related_dir(tmpdir):
    fp = str(tmpdir.join('test_writeable.pyn'))
    reldir = filer._related_dir(fp)
    os.mkdir(reldir)
    assert filer.writeable(fp, False)
    os.rmdir(reldir)