diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-10-25 17:19:03 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-10-25 17:19:03 -0400 |
| commit | 46ac022e57c5279d508379f92978afd592aea5ea (patch) | |
| tree | b1cfa4ecf36ba94dcba404c9adc77b68ae506cf3 /test/engine/test_reflection.py | |
| parent | 51e8e5df469b755ad8ba940a43281e8423789167 (diff) | |
| download | sqlalchemy-46ac022e57c5279d508379f92978afd592aea5ea.tar.gz | |
- move this test to PG test_reflection
- don't use locals()
Diffstat (limited to 'test/engine/test_reflection.py')
| -rw-r--r-- | test/engine/test_reflection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/engine/test_reflection.py b/test/engine/test_reflection.py index c36052781..e7baa9d56 100644 --- a/test/engine/test_reflection.py +++ b/test/engine/test_reflection.py @@ -647,9 +647,9 @@ class ReflectionTest(fixtures.TestBase, ComparesTables): meta2 = MetaData() meta2.reflect(testing.db) for fk in meta2.tables['addresses'].foreign_keys: - ref = locals()[fk.name] + ref = addresses_user_id_fkey for attr in test_attrs: - assert getattr(fk, attr) == getattr(ref, attr) + eq_(getattr(fk, attr), getattr(ref, attr)) def test_pks_not_uniques(self): """test that primary key reflection not tripped up by unique |
