def comparison_operator_query(comparison_operator):
    def _comparison_operator_query(expression):
        """Apply binary operator to expression."""
        def _apply_comparison_operator(index, expression=expression):
            """Return store key for documents that satisfy expression."""
            ev = expression() if callable(expression) else expression
            return [
                store_key
                for value, store_keys
                in index.get_index().items()
                if comparison_operator(value, ev)
                for store_key in store_keys
            ]
        return _apply_comparison_operator
    return _comparison_operator_query
Test the setup with connection failure.
dataset/ETHPy150Open adewes/blitzdb/blitzdb/backends/file/queries.py/comparison_operator_query--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/tests/components/binary_sensor/test_nx584.py/TestNX584SensorSetup.test_setup_connect_failed