Permalink
Browse files

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
  • Loading branch information...
1 parent 313fab8 commit d48510cc6b772048454f62d0b7caa11a75e60d79 @ramiro ramiro committed Oct 17, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 tests/regressiontests/admin_scripts/tests.py
View
6 tests/regressiontests/admin_scripts/tests.py
@@ -864,14 +864,16 @@ def test_builtin_with_settings(self):
"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):

0 comments on commit d48510c

Please sign in to comment.