diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-26 12:15:03 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-26 12:15:03 -0700 |
| commit | 9d740eb8b15de31f1c5520659df683d90342bb44 (patch) | |
| tree | 62b6ff49e5a60467828f9b04d46b6ebeac86c333 /tests/validation | |
| parent | f2d8027c9aea93750fc4213d9e733c8575e89502 (diff) | |
Fix all violators of E231
Diffstat (limited to 'tests/validation')
| -rw-r--r-- | tests/validation/test_unique.py | 2 | ||||
| -rw-r--r-- | tests/validation/tests.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/validation/test_unique.py b/tests/validation/test_unique.py index 07145b2de4..7d4ba26ff0 100644 --- a/tests/validation/test_unique.py +++ b/tests/validation/test_unique.py @@ -90,7 +90,7 @@ class PerformUniqueChecksTest(TestCase): p.full_clean() # Should work without errors - p = Post(title="Django 1.0 is released", posted=datetime.datetime(2008, 9,4)) + p = Post(title="Django 1.0 is released", posted=datetime.datetime(2008, 9, 4)) p.full_clean() p = Post(slug="Django 1.0", posted=datetime.datetime(2008, 1, 1)) diff --git a/tests/validation/tests.py b/tests/validation/tests.py index 14337b6576..02839eaf26 100644 --- a/tests/validation/tests.py +++ b/tests/validation/tests.py @@ -119,9 +119,9 @@ class GenericIPAddressFieldTests(ValidationTestCase): def test_invalid_generic_ip_raises_error(self): giptm = GenericIPAddressTestModel(generic_ip="294.4.2.1") - self.assertFailsValidation(giptm.full_clean, ['generic_ip',]) + self.assertFailsValidation(giptm.full_clean, ['generic_ip']) giptm = GenericIPAddressTestModel(generic_ip="1:2") - self.assertFailsValidation(giptm.full_clean, ['generic_ip',]) + self.assertFailsValidation(giptm.full_clean, ['generic_ip']) def test_correct_v4_ip_passes(self): giptm = GenericIPAddressTestModel(v4_ip="1.2.3.4") @@ -161,7 +161,7 @@ class GenericIPAddressFieldTests(ValidationTestCase): giptm = GenericIPAddrUnpackUniqueTest(generic_v4unpack_ip="::ffff:18.52.18.52") giptm.save() giptm = GenericIPAddrUnpackUniqueTest(generic_v4unpack_ip="18.52.18.52") - self.assertFailsValidation(giptm.full_clean, ['generic_v4unpack_ip',]) + self.assertFailsValidation(giptm.full_clean, ['generic_v4unpack_ip']) def test_empty_generic_ip_passes(self): giptm = GenericIPAddressTestModel(generic_ip="") |
