def test_mpdrmq_after_execute_exception(self):
    """ Test that the call to after_execute call superclass after_execute"""
    agentconf={}
    mpdconf={"host":"mpd.lan"}
    rmqconf={"host":"rmq.lan"}
    agent=MpdRmqAgent(agentconf, mpdconf, rmqconf)

    #Setup generic mock for others methods wich are not tested here
    ignoredmocks=Mock()
    agent.mpdclient=ignoredmocks
    agent.rmqclient=ignoredmocks
    agent.rmqclient.disconnect.side_effect=Exception("In your face")

    with self.assertRaises(MpdRmqException):
      agent.ensure_after_execute()