summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2006-07-19 18:58:41 +0000
committerJason Pellerin <jpellerin@gmail.com>2006-07-19 18:58:41 +0000
commit58b24acdf440dff54fb060ddcd1a27f936ff2305 (patch)
tree7bc106b0806f84ef4d4d516b11baec239b06d02d
parent9b84da453e3525734c38b7608e38b408b34a3b21 (diff)
[multi-db] Updated ansi sql test to reflect that drop table output is
not reversed by default. git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3388 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/othertests/ansi_sql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/othertests/ansi_sql.py b/tests/othertests/ansi_sql.py
index 97c8e42c18..3242172ec3 100644
--- a/tests/othertests/ansi_sql.py
+++ b/tests/othertests/ansi_sql.py
@@ -70,11 +70,11 @@ True
>>> Car._default_manager.db.backend.supports_constraints
True
>>> builder.get_drop_table(Car, cascade=True)
-[BoundStatement('ALTER TABLE "ansi_sql_mod" ...'), BoundStatement('DROP TABLE "ansi_sql_car";')]
+[BoundStatement('DROP TABLE "ansi_sql_car";'), BoundStatement('ALTER TABLE "ansi_sql_mod" ...')]
>>> builder.get_drop_table(Collector)
[BoundStatement('DROP TABLE "ansi_sql_collector";')]
>>> builder.get_drop_table(Collector, cascade=True)
-[BoundStatement('DROP TABLE "ansi_sql_collector_cars";'), BoundStatement('DROP TABLE "ansi_sql_collector";')]
+[BoundStatement('DROP TABLE "ansi_sql_collector";'), BoundStatement('DROP TABLE "ansi_sql_collector_cars";')]
>>> Mod._default_manager.db.backend.supports_constraints = real_cnst
"""