summaryrefslogtreecommitdiff
path: root/tests/validators
diff options
context:
space:
mode:
authorAlasdair Nicol <alasdair@memset.com>2013-10-22 11:21:07 +0100
committerAlasdair Nicol <alasdair@memset.com>2013-10-23 13:45:03 +0100
commitc3aa2948c6c14862407501290571f858ccf45b07 (patch)
tree6f0812d7db0fe2f5a6bf9e07f20ba7d442ce8789 /tests/validators
parent317040a73b77be8f8210801793b2ce6d1a69301e (diff)
downloaddjango-c3aa2948c6c14862407501290571f858ccf45b07.tar.gz
Fixed #21298 -- Fixed E301 pep8 warnings
Diffstat (limited to 'tests/validators')
-rw-r--r--tests/validators/tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/validators/tests.py b/tests/validators/tests.py
index 410fc15f0b..367bd4380d 100644
--- a/tests/validators/tests.py
+++ b/tests/validators/tests.py
@@ -184,6 +184,7 @@ TEST_DATA = (
def create_simple_test_method(validator, expected, value, num):
if expected is not None and issubclass(expected, Exception):
test_mask = 'test_%s_raises_error_%d'
+
def test_func(self):
# assertRaises not used, so as to be able to produce an error message
# containing the tested value
@@ -196,6 +197,7 @@ def create_simple_test_method(validator, expected, value, num):
expected.__name__, value))
else:
test_mask = 'test_%s_%d'
+
def test_func(self):
try:
self.assertEqual(expected, validator(value))