예제 #1
0
def test_argument_source_symlink_after_init_invalid():
    file = File(path='boo.txt', source='source.txt', state='symlink')
    with pytest.raises(ValueError):
        file.source = None
예제 #2
0
def test_argument_source_directory_after_init_invalid():
    file = File(path='boo.txt', state='directory')
    with pytest.raises(ValueError):
        file.source = 'source'