#NEWLINE# @ mock . patch ( 'certbot.reverter.Reverter.view_config_changes' ) #NEWLINE# def test_view_config_changes_throws_error_from_reverter( self , mock_view_config_changes ) : #NEWLINE# #INDENT# mock_view_config_changes . side_effect = errors . ReverterError ( 'foo' ) #NEWLINE# self . assertRaises ( errors . PluginError , mock_view_config_changes . config . view_config_changes )