def test_telnetrmq_after_execute(self, mocked): """ Test that the call to after_execute call superclass after_execute""" agentconf={} telnetconf={"host":"telnet.lan"} rmqconf={"host":"rmq.lan"} agent=TelnetRmqAgent(agentconf, telnetconf, rmqconf) #Setup generic mock for others methods wich are not tested here ignoredmocks=Mock() agent.telnetclient=ignoredmocks agent.rmqclient=ignoredmocks instance = mocked.return_value agent.after_execute() mocked.assert_called_with(agent) mocked.assert_called_with(agent)