def set_exception(self, exception):
        with self._condition:
            self._exception = exception
            for callback in self._callbacks:
                self._handler.completion_queue.put(
                    lambda: callback(self)
                )
            self._condition.notify_all()
Create ``TestCase`` class that contains properties to check.
dataset/ETHPy150Open python-zk/kazoo/kazoo/handlers/utils.py/AsyncResult.set_exception--crossover with--dataset/ETHPy150Open Xion/pyqcy/pyqcy/integration.py/TestCase.__metaclass__.__new__