It would probably be best to assert that self.mock_qpid_session.acknowledge.call_count is 0 instead of just not having an Exception raised. This way failure would lead to an F from the test suite instead of an E.