'Test to ensure that statement partition key generation is in the correct order
@since 3.2
@jira_ticket PYTHON-535
@expected_result .
@test_category object_mapper'

def test_partition_key_index(self):

    self._check_partition_value_generation(BasicModel, SelectStatement(BasicModel.__table_name__))
    self._check_partition_value_generation(BasicModel, DeleteStatement(BasicModel.__table_name__))
    self._check_partition_value_generation(BasicModelMulti, SelectStatement(BasicModelMulti.__table_name__))
    self._check_partition_value_generation(BasicModelMulti, DeleteStatement(BasicModelMulti.__table_name__))
    self._check_partition_value_generation(ComplexModelRouting, SelectStatement(ComplexModelRouting.__table_name__))
    self._check_partition_value_generation(ComplexModelRouting, DeleteStatement(ComplexModelRouting.__table_name__))
    self._check_partition_value_generation(BasicModel, SelectStatement(BasicModel.__table_name__), reverse=True)
    self._check_partition_value_generation(BasicModel, DeleteStatement(BasicModel.__table_name__), reverse=True)
    self._check_partition_value_generation(BasicModelMulti, SelectStatement(BasicModelMulti.__table_name__), reverse=True)
    self._check_partition_value_generation(BasicModelMulti, DeleteStatement(BasicModelMulti.__table_name__), reverse=True)
    self._check_partition_value_generation(ComplexModelRouting, SelectStatement(ComplexModelRouting.__table_name__), reverse=True)
    self._check_partition_value_generation(ComplexModelRouting, DeleteStatement(ComplexModelRouting.__table_name__), reverse=True)
