def test_argument_state_directory_after_init_invalid(): file = File(path='boo.txt', source='source') with pytest.raises(ValueError): file.state = 'directory'
def test_argument_state_symlink_after_init_invalid(): file = File(path='boo.txt') with pytest.raises(ValueError): file.state = 'symlink'
def test_argument_state_absent_after_init_invalid(): file = File(path='boo.txt', source='source.txt') with pytest.raises(ValueError): file.state = 'absent'