diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2011-10-17 00:34:42 +0000 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2011-10-17 00:34:42 +0000 |
| commit | d48510cc6b772048454f62d0b7caa11a75e60d79 (patch) | |
| tree | bba1b7871cc1f36fb9f8103470c253b5ac7557e1 /tests/regressiontests/admin_scripts | |
| parent | 313fab8623d68be1361e4b3383f587d79fadecd7 (diff) | |
Tweaked admin_scripts tests enhanced in r16964 a bit more so they don't fail with Oracle.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16999 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/admin_scripts')
| -rw-r--r-- | tests/regressiontests/admin_scripts/tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/regressiontests/admin_scripts/tests.py b/tests/regressiontests/admin_scripts/tests.py index 32bf4cfd10..8633f79c44 100644 --- a/tests/regressiontests/admin_scripts/tests.py +++ b/tests/regressiontests/admin_scripts/tests.py @@ -864,14 +864,16 @@ 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.assertRegexpMatches(out, 'CREATE TABLE [`"]admin_scripts_article[`"]') + expected_query_re = re.compile('CREATE TABLE [`"]admin_scripts_article[`"]', re.IGNORECASE) + self.assertRegexpMatches(out, expected_query_re) 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.assertRegexpMatches(out, 'CREATE TABLE [`"]admin_scripts_article[`"]') + expected_query_re = re.compile('CREATE TABLE [`"]admin_scripts_article[`"]', re.IGNORECASE) + self.assertRegexpMatches(out, expected_query_re) self.assertNoOutput(err) def test_builtin_with_bad_settings(self): |
