Fixed #21298 -- Fixed E301 pep8 warnings

This commit is contained in:
Alasdair Nicol 2013-10-22 11:21:07 +01:00
parent 317040a73b
commit c3aa2948c6
83 changed files with 180 additions and 2 deletions

View file

@ -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))