def query_and_fetchall(self, query):
        with vertica_python.connect(**conn_info) as conn:
            cur = conn.cursor()
            cur.execute(query)

            return cur.fetchall()
Next, `head` and `tail` needs to extract the first character and the rest
dataset/ETHPy150Open uber/vertica-python/vertica_python/tests/test_commons.py/VerticaTestCase.query_and_fetchall--crossover with--dataset/ETHPy150Open kvalle/diy-lisp/tests/test_8_final_touches.py/test_strings_have_heads_and_tails