From: Mike Bayer Date: Fri, 16 Oct 2015 17:35:59 +0000 (-0400) Subject: - make the assertion more specific here X-Git-Tag: rel_0_8_3~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6247c218900ba274d7919887950fb2da4e4cc8c;p=thirdparty%2Fsqlalchemy%2Falembic.git - make the assertion more specific here --- diff --git a/tests/test_batch.py b/tests/test_batch.py index c846845c..813b15da 100644 --- a/tests/test_batch.py +++ b/tests/test_batch.py @@ -895,11 +895,14 @@ class BatchRoundTripTest(TestBase): insp = Inspector.from_engine(config.db) eq_( - sorted(insp.get_indexes('t_w_ix'), key=lambda idx: idx['name']), - [ - {'unique': 0, 'name': 'ix_data', 'column_names': ['data']}, - {'unique': 0, 'name': 'ix_thing', 'column_names': ['thing']} - ] + set( + (ix['name'], tuple(ix['column_names'])) for ix in + insp.get_indexes('t_w_ix') + ), + set([ + ('ix_data', ('data',)), + ('ix_thing', ('thing', )) + ]) ) def test_fk_points_to_me_auto(self):