@testing.provide_metadata
def test_non_column_index(self):
    m1 = self.metadata
    t1 = Table('add_ix', m1, Column('x', String(50)), mysql_engine='InnoDB')
    Index('foo_idx', t1.c.x.desc())
    m1.create_all()
    insp = inspect(testing.db)
    eq_(insp.get_indexes('add_ix'), [{'name': 'foo_idx', 'column_names': ['x'], 'unique': False}])
@testing.provide_metadata
def test_non_column_index(self):
    m1 = self.metadata
    t1 = Table('add_ix', m1, Column('x', String(50)), mysql_engine='InnoDB')
    Index('foo_idx', t1.c.x.desc())
    m1.create_all()
    insp = inspect(testing.db)
    eq_(insp.get_indexes('add_ix'), [{'name': 'foo_idx', 'column_names': ['x'], 'unique': False}])