'Test for ensuring nested registered udts are properly inserted'

def test_can_insert_nested_registered_udts(self):

    c = Cluster(protocol_version=PROTOCOL_VERSION)
    s = c.connect(self.keyspace_name, wait_for_all_pools=True)
    s.row_factory = dict_factory
    MAX_NESTING_DEPTH = 16
    self.nested_udt_schema_helper(s, MAX_NESTING_DEPTH)
    udts = []
    udt = namedtuple('depth_0', ('age', 'name'))
    udts.append(udt)
    c.register_user_type(self.keyspace_name, 'depth_0', udts[0])
    for i in range(MAX_NESTING_DEPTH):
        udt = namedtuple('depth_{0}'.format((i + 1)), 'value')
        udts.append(udt)
        c.register_user_type(self.keyspace_name, 'depth_{0}'.format((i + 1)), udts[(i + 1)])
    self.nested_udt_verification_helper(s, MAX_NESTING_DEPTH, udts)
    c.shutdown()
