summaryrefslogtreecommitdiff
path: root/test/engine/test_bind.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-04-16 13:08:45 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-04-16 13:08:45 -0400
commit23f8c6c241a457d88bcb470e37a5d23926195290 (patch)
treed8c7c75f464fdcd16cea9cf1d4fe33308dbd4b54 /test/engine/test_bind.py
parenta4032d2929d82af81379893c3d2037ea253e929e (diff)
downloadsqlalchemy-23f8c6c241a457d88bcb470e37a5d23926195290.tar.gz
- Table.create() and Table.drop() no longer apply metadata-
level create/drop events. [ticket:1771]
Diffstat (limited to 'test/engine/test_bind.py')
-rw-r--r--test/engine/test_bind.py28
1 files changed, 3 insertions, 25 deletions
diff --git a/test/engine/test_bind.py b/test/engine/test_bind.py
index 1122f1632..c958f6f4c 100644
--- a/test/engine/test_bind.py
+++ b/test/engine/test_bind.py
@@ -31,16 +31,14 @@ class BindTest(testing.TestBase):
table.drop(*args[0], **args[1])
assert not table.exists(*args[0], **args[1])
- def test_create_drop_err(self):
+ def test_create_drop_err_metadata(self):
metadata = MetaData()
table = Table('test_table', metadata,
Column('foo', Integer))
-
+
for meth in [
metadata.create_all,
metadata.drop_all,
- table.create,
- table.drop,
]:
try:
meth()
@@ -54,27 +52,7 @@ class BindTest(testing.TestBase):
"against. Either execute with an explicit connection or "
"assign the MetaData's .bind to enable implicit execution.")
- for meth in [
- table.exists,
- # future:
- #table.create,
- #table.drop,
- ]:
- try:
- meth()
- assert False
- except exc.UnboundExecutionError, e:
- eq_(
- str(e),
- "The Table 'test_table' "
- "is not bound to an Engine or Connection. "
- "Execution can not proceed without a database to execute "
- "against. Either execute with an explicit connection or "
- "assign this Table's .metadata.bind to enable implicit "
- "execution.")
-
- @testing.future
- def test_create_drop_err2(self):
+ def test_create_drop_err_table(self):
metadata = MetaData()
table = Table('test_table', metadata,
Column('foo', Integer))