#NEWLINE# def test_setvalue_uneven_path( self ) : #NEWLINE# #INDENT# '\n        Test if it set a value for a specific augeas path\n        ' #NEWLINE# mock = MagicMock ( side_effect = RuntimeError ( 'error' ) ) #NEWLINE# with patch . object ( _Augeas , 'match' , self ) : #NEWLINE# #INDENT# self . assertRaises ( SaltInvocationError , augeas_cfg . setvalue , [ '/files/etc/hosts/1/canonical' , 'localhost' ] )