

def test_drop_keyspace(self):
    "\n        Test to validate that dropping a keyspace with user defined types doesn't kill the control connection.\n\n\n        Creates a keyspace, and populates with a user defined type. It then records the control_connection's id. It\n        will then drop the keyspace and get the id of the control_connection again. They should be the same. If they are\n        not dropping the keyspace likely caused the control connection to be rebuilt.\n\n        @since 2.7.0\n        @jira_ticket PYTHON-358\n        @expected_result the control connection is not killed\n\n        @test_category connection\n        "
    self.session.execute("\n            CREATE KEYSPACE keyspacetodrop\n            WITH replication = { 'class' : 'SimpleStrategy', 'replication_factor': '1' }\n            ")
    self.session.set_keyspace('keyspacetodrop')
    self.session.execute('CREATE TYPE user (age int, name text)')
    self.session.execute('CREATE TABLE mytable (a int PRIMARY KEY, b frozen<user>)')
    cc_id_pre_drop = id(self.cluster.control_connection._connection)
    self.session.execute('DROP KEYSPACE keyspacetodrop')
    cc_id_post_drop = id(self.cluster.control_connection._connection)
    self.assertEqual(cc_id_pre_drop, cc_id_pre_drop)

dataset/ETHPy150Open datastax/python-driver/tests/integration/standard/test_control_connection.py ControlConnectionTests.test_drop_keyspace/VarMisuse@87/437 `cc_id_post_drop`->`cc_id_pre_drop`