'Indexes have the \'orders\' key with a list of \'ASC\'/\'DESC\' values.'

@skipUnlessDBFeature('supports_index_column_ordering')
def test_get_constraints_indexes_orders(self):

    with connection.cursor() as cursor:
        constraints = connection.introspection.get_constraints(cursor, Article._meta.db_table)
    indexes_verified = 0
    expected_columns = [['reporter_id'], ['headline', 'pub_date'], ['response_to_id'], ['headline', 'response_to_id', 'pub_date', 'reporter_id']]
    for (key, val) in constraints.items():
        if (val['index'] and (not (val['primary_key'] or val['unique']))):
            self.assertIn(val['columns'], expected_columns)
            self.assertEqual(val['orders'], (['ASC'] * len(val['columns'])))
            indexes_verified += 1
    self.assertEqual(indexes_verified, 4)
