'Compares the routing key generated by complex composite partition key using the model with the one generated by the equivalent
bound statement
@since 3.2
@jira_ticket PYTHON-535
@expected_result they should match
@test_category object_mapper'

def test_routing_key_generation_complex(self):

    prepared = self.session.prepare('\n                                        INSERT    INTO    {0}.complex_model_routing    (partition,    cluster,    count,    text,    float,    text_2)    VALUES        (?,    ?,    ?,    ?,    ?,    ?)\n                                        '.format(DEFAULT_KEYSPACE))
    partition = uuid4()
    cluster = 1
    count = 2
    text = 'text'
    float = 1.2
    text_2 = 'text_2'
    bound = prepared.bind((partition, cluster, count, text, float, text_2))
    mrk = ComplexModelRouting._routing_key_from_values([partition, cluster, text, float], self.session.cluster.protocol_version)
    simple = SimpleStatement('')
    simple.routing_key = mrk
    self.assertEqual(bound.routing_key, simple.routing_key)
