Ejemplo n.º 1
0
def test_argument_state_directory_after_init_invalid():
    file = File(path='boo.txt', source='source')
    with pytest.raises(ValueError):
        file.state = 'directory'
Ejemplo n.º 2
0
def test_argument_state_symlink_after_init_invalid():
    file = File(path='boo.txt')
    with pytest.raises(ValueError):
        file.state = 'symlink'
Ejemplo n.º 3
0
def test_argument_state_absent_after_init_invalid():
    file = File(path='boo.txt', source='source.txt')
    with pytest.raises(ValueError):
        file.state = 'absent'