diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-03 10:08:55 -0800 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-03 10:08:55 -0800 |
| commit | c347f78cc1b2a06958f692f0622deceac534dc6b (patch) | |
| tree | c91fa9a8b5843249e2e8e6165848aae0c9fb4b17 /tests/forms_tests | |
| parent | 7288e1b02b2504b1694fe14df2d81e6a354c5610 (diff) | |
Fixed all E226 violations
Diffstat (limited to 'tests/forms_tests')
| -rw-r--r-- | tests/forms_tests/tests/test_fields.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/forms_tests/tests/test_fields.py b/tests/forms_tests/tests/test_fields.py index e7412b81d7..d7eb86f399 100644 --- a/tests/forms_tests/tests/test_fields.py +++ b/tests/forms_tests/tests/test_fields.py @@ -760,11 +760,11 @@ class FieldsTests(SimpleTestCase): def test_url_regex_ticket11198(self): f = URLField() # hangs "forever" if catastrophic backtracking in ticket:#11198 not fixed - self.assertRaisesMessage(ValidationError, "'Enter a valid URL.'", f.clean, 'http://%s' % ("X"*200,)) + self.assertRaisesMessage(ValidationError, "'Enter a valid URL.'", f.clean, 'http://%s' % ("X" * 200,)) # a second test, to make sure the problem is really addressed, even on # domains that don't fail the domain label length check in the regex - self.assertRaisesMessage(ValidationError, "'Enter a valid URL.'", f.clean, 'http://%s' % ("X"*60,)) + self.assertRaisesMessage(ValidationError, "'Enter a valid URL.'", f.clean, 'http://%s' % ("X" * 60,)) def test_urlfield_2(self): f = URLField(required=False) |
