diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2011-10-16 09:51:22 +0000 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2011-10-16 09:51:22 +0000 |
| commit | 03316579f4d804f6828af16b7377a214a3b51518 (patch) | |
| tree | cb3f7a97fe462342efe9da10556f9caa5187254b /tests/regressiontests/admin_scripts/tests.py | |
| parent | d75337fc7b63400a4d866955d84d3092822c95ab (diff) | |
Fixed a test that depended on how identifiers are quoted by the database backend and broke under MySQL. Refs #17055.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/admin_scripts/tests.py')
| -rw-r--r-- | tests/regressiontests/admin_scripts/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/admin_scripts/tests.py b/tests/regressiontests/admin_scripts/tests.py index 8580e36d1a..32bf4cfd10 100644 --- a/tests/regressiontests/admin_scripts/tests.py +++ b/tests/regressiontests/admin_scripts/tests.py @@ -864,14 +864,14 @@ class ManageAlternateSettings(AdminScriptTestCase): "alternate: manage.py builtin commands work with settings provided as argument" args = ['sqlall','--settings=alternate_settings', 'admin_scripts'] out, err = self.run_manage(args) - self.assertOutput(out, 'CREATE TABLE "admin_scripts_article"') + self.assertRegexpMatches(out, 'CREATE TABLE [`"]admin_scripts_article[`"]') self.assertNoOutput(err) def test_builtin_with_environment(self): "alternate: manage.py builtin commands work if settings are provided in the environment" args = ['sqlall','admin_scripts'] out, err = self.run_manage(args,'alternate_settings') - self.assertOutput(out, 'CREATE TABLE "admin_scripts_article"') + self.assertRegexpMatches(out, 'CREATE TABLE [`"]admin_scripts_article[`"]') self.assertNoOutput(err) def test_builtin_with_bad_settings(self): |
