def METHOD_NAME(self):
    try:
        query = """MATCH ()-[e]->()-[e]->() RETURN e
                   UNION
                   MATCH ()-[e]->() RETURN e"""
        redis_graph.query(query)
        assert(False)
    except redis.exceptions.ResponseError:
        # Expecting an error.
        pass