summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-07-19 22:20:49 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-07-19 22:20:49 +0000
commit934ac330ea812395b66f82e13afc034303bafc9c (patch)
tree0d664563ba0bac2aa78f880c5b16dc6a3e313d28 /test
parent8b50115acc7d249129aa8046839eefa2c611c453 (diff)
downloadsqlalchemy-934ac330ea812395b66f82e13afc034303bafc9c.tar.gz
added table.exists()
Diffstat (limited to 'test')
-rw-r--r--test/engine/reflection.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/engine/reflection.py b/test/engine/reflection.py
index 64a645d0f..582920b30 100644
--- a/test/engine/reflection.py
+++ b/test/engine/reflection.py
@@ -162,10 +162,13 @@ class ReflectionTest(PersistTest):
Column('col1', Integer, primary_key=True),
Column('col2', String(40)))
try:
+ assert not table.exists()
table.create()
+ assert table.exists()
table.create(checkfirst=True)
table.drop()
table.drop(checkfirst=True)
+ assert not table.exists()
table.create(checkfirst=True)
table.drop()
finally: