diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-11-02 22:11:40 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-11-02 22:11:40 +0000 |
| commit | 50719c0bb0bb2db51c0fe2024cb03d4b41ae650b (patch) | |
| tree | e87717599c3edb90e3e18e0e74782cf4f5b1c6ce /test/sql/selectable.py | |
| parent | ff2f799ba3f5b0d1ea6d34119ff273e910db100d (diff) | |
| download | sqlalchemy-50719c0bb0bb2db51c0fe2024cb03d4b41ae650b.tar.gz | |
revert r5220 inadvertently committed to trunk
Diffstat (limited to 'test/sql/selectable.py')
| -rwxr-xr-x | test/sql/selectable.py | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/test/sql/selectable.py b/test/sql/selectable.py index f6bf3eb08..e41165b5b 100755 --- a/test/sql/selectable.py +++ b/test/sql/selectable.py @@ -5,7 +5,7 @@ every selectable unit behaving nicely with others..""" import testenv; testenv.configure_for_tests() from sqlalchemy import * from testlib import * -from sqlalchemy.sql import util as sql_util, visitors +from sqlalchemy.sql import util as sql_util from sqlalchemy import exc metadata = MetaData() @@ -475,21 +475,6 @@ class AnnotationsTest(TestBase): assert inner.corresponding_column(t2.c.col1, require_embedded=False) is inner.corresponding_column(t2.c.col1, require_embedded=True) is inner.c.col1 assert inner.corresponding_column(t1.c.col1, require_embedded=False) is inner.corresponding_column(t1.c.col1, require_embedded=True) is inner.c.col1 - def test_annotated_visit(self): - from sqlalchemy.sql import table, column - table1 = table('table1', column("col1"), column("col2")) - - bin = table1.c.col1 == bindparam('foo', value=None) - assert str(bin) == "table1.col1 = :foo" - def visit_binary(b): - b.right = table1.c.col2 - b2 = visitors.cloned_traverse(bin, {}, {'binary':visit_binary}) - assert str(b2) == "table1.col1 = table1.col2" - - b3 = visitors.cloned_traverse(bin._annotate({}), {}, {'binary':visit_binary}) - assert str(b3) == "table1.col1 = table1.col2" - - if __name__ == "__main__": testenv.main() |
