def execute_query(self, query, values):
        """
        Executes a query to the test_db and closes the connection afterwards.
        """
        retval = self.cursor.execute(query, values)
        self.__close_db()
        return retval
def execute_query ( self , query , values ) : retval = self . cursor . execute ( query , values ) self . __close_db ( ) return retval
Executes a query to the test_db and closes the connection afterwards.