@@ -0,0 +1,989 @@
+from dtest import Tester%0Afrom assertions import *%0Afrom tools import *%0A%0Aimport os, sys, time, tools%0Afrom uuid import UUID%0Afrom ccmlib.cluster import Cluster%0A%0Acql_version=%223.0.0%22%0A%0Aclass TestCQL(Tester):%0A%0A    def prepare(self):%0A        cluster = self.cluster%0A%0A        cluster.populate(1).start()%0A        node1 = cluster.nodelist()%5B0%5D%0A        time.sleep(0.2)%0A%0A        cursor = self.cql_connection(node1, version=cql_version).cursor()%0A        self.create_ks(cursor, 'ks', 1)%0A        return cursor%0A%0A    @since(%221.2%22)%0A    def batch_preparation_test(self):%0A        %22%22%22 Test preparation of batch statement (#4202) %22%22%22%0A        cursor = self.prepare()%0A%0A        cursor.execute(%22%22%22%0A            CREATE TABLE cf (%0A                k varchar PRIMARY KEY,%0A                c int,%0A            )%0A        %22%22%22)%0A%0A        query = %22BEGIN BATCH INSERT INTO cf (k, c) VALUES (:key, :val); APPLY BATCH%22;%0A        pq = cursor.prepare_query(query);%0A%0A        cursor.execute_prepared(pq, params=%7B'key' : 'foo', 'val' : 4%7D)%0A

add prepared test