'Compares the routing key generated by simple partition key using the model with the one generated by the equivalent
bound statement. It also verifies basic operations work with no routing key
@since 3.2
@jira_ticket PYTHON-505
@expected_result they shouldn\'t match
@test_category object_mapper'

def test_routing_key_is_ignored(self):

    prepared = self.session.prepare('\n                                        INSERT    INTO    {0}.basic_model_no_routing    (k,    v)    VALUES        (?,    ?)\n                                        '.format(DEFAULT_KEYSPACE))
    bound = prepared.bind((1, 2))
    mrk = BasicModelNoRouting._routing_key_from_values([1], self.session.cluster.protocol_version)
    simple = SimpleStatement('')
    simple.routing_key = mrk
    self.assertNotEqual(bound.routing_key, simple.routing_key)
    t = BasicModelNoRouting.create(k=2, v=3)
    t.update(v=4).save()
    f = BasicModelNoRouting.objects.filter(k=2).first()
    self.assertEqual(t, f)
    t.delete()
    self.assertEqual(BasicModelNoRouting.objects.count(), 0)
