@testing.provide_metadata
def test_case_sensitive_column_constraint_reflection(self):
    m1 = self.metadata
    Table('Track', m1, Column('TrackID', Integer, primary_key=True), mysql_engine='InnoDB')
    Table('Track', m1, Column('TrackID', Integer, primary_key=True), schema=testing.config.test_schema, mysql_engine='InnoDB')
    Table('PlaylistTrack', m1, Column('id', Integer, primary_key=True), Column('TrackID', ForeignKey('Track.TrackID', name='FK_PlaylistTrackId')), Column('TTrackID', ForeignKey(('%s.Track.TrackID' % (testing.config.test_schema,)), name='FK_PlaylistTTrackId')), mysql_engine='InnoDB')
    m1.create_all()
    if (testing.db.dialect._casing in (1, 2)):
        eq_(inspect(testing.db).get_foreign_keys('PlaylistTrack'), [{'name': 'FK_PlaylistTTrackId', 'constrained_columns': ['TTrackID'], 'referred_schema': testing.config.test_schema, 'referred_table': 'track', 'referred_columns': ['TrackID'], 'options': {}}, {'name': 'FK_PlaylistTrackId', 'constrained_columns': ['TrackID'], 'referred_schema': None, 'referred_table': 'track', 'referred_columns': ['TrackID'], 'options': {}}])
    else:
        eq_(inspect(testing.db).get_foreign_keys('PlaylistTrack'), [{'name': 'FK_PlaylistTTrackId', 'constrained_columns': ['TTrackID'], 'referred_schema': testing.config.test_schema, 'referred_table': 'Track', 'referred_columns': ['TrackID'], 'options': {}}, {'name': 'FK_PlaylistTrackId', 'constrained_columns': ['TrackID'], 'referred_schema': None, 'referred_table': 'Track', 'referred_columns': ['TrackID'], 'options': {}}])
@testing.provide_metadata
def test_case_sensitive_column_constraint_reflection(self):
    m1 = self.metadata
    Table('Track', m1, Column('TrackID', Integer, primary_key=True), mysql_engine='InnoDB')
    Table('Track', m1, Column('TrackID', Integer, primary_key=True), schema=testing.config.test_schema, mysql_engine='InnoDB')
    Table('PlaylistTrack', m1, Column('id', Integer, primary_key=True), Column('TrackID', ForeignKey('Track.TrackID', name='FK_PlaylistTrackId')), Column('TTrackID', ForeignKey(('%s.Track.TrackID' % (testing.config.test_schema,)), name='FK_PlaylistTTrackId')), mysql_engine='InnoDB')
    m1.create_all()
    if (testing.db.dialect._casing in (1, 2)):
        eq_(inspect(testing.db).get_foreign_keys('PlaylistTrack'), [{'name': 'FK_PlaylistTTrackId', 'constrained_columns': ['TTrackID'], 'referred_schema': testing.config.test_schema, 'referred_table': 'track', 'referred_columns': ['TrackID'], 'options': {}}, {'name': 'FK_PlaylistTrackId', 'constrained_columns': ['TrackID'], 'referred_schema': None, 'referred_table': 'track', 'referred_columns': ['TrackID'], 'options': {}}])
    else:
        eq_(inspect(testing.db).get_foreign_keys('PlaylistTrack'), [{'name': 'FK_PlaylistTTrackId', 'constrained_columns': ['TTrackID'], 'referred_schema': testing.config.test_schema, 'referred_table': 'Track', 'referred_columns': ['TrackID'], 'options': {}}, {'name': 'FK_PlaylistTrackId', 'constrained_columns': ['TrackID'], 'referred_schema': None, 'referred_table': 'Track', 'referred_columns': ['TrackID'], 'options': {}}])