@@ -35,8 +35,8 @@ def assertNoErrors(self, actual):
3535
3636class TestBlankLinesDefault (BlankLinesTestCase ):
3737 """
38- Tests for default blank with 2 blank lines for top level and 1 blank line
39- for methods.
38+ Tests for default blank with 2 blank lines for top level and 1
39+ blank line for methods.
4040 """
4141
4242 def test_initial_no_blank (self ):
@@ -51,8 +51,8 @@ def test_initial_no_blank(self):
5151
5252 def test_initial_lines_one_blank (self ):
5353 """
54- It will accept 1 blank lines before the first line of actual code,
55- even if in other places it asks for 2
54+ It will accept 1 blank lines before the first line of actual
55+ code, even if in other places it asks for 2
5656 """
5757 result = self .check ("""
5858def some_function():
@@ -63,8 +63,8 @@ def some_function():
6363
6464 def test_initial_lines_two_blanks (self ):
6565 """
66- It will accept 2 blank lines before the first line of actual code,
67- as normal.
66+ It will accept 2 blank lines before the first line of actual
67+ code, as normal.
6868 """
6969 result = self .check ("""
7070
@@ -76,8 +76,8 @@ def some_function():
7676
7777 def test_method_less_blank_lines (self ):
7878 """
79- It will trigger an error when less than 1 blank lin is found before
80- method definitions.
79+ It will trigger an error when less than 1 blank lin is found
80+ before method definitions.
8181 """
8282 result = self .check ("""# First comment line.
8383class X:
@@ -93,8 +93,8 @@ def b():
9393
9494 def test_method_less_blank_lines_comment (self ):
9595 """
96- It will trigger an error when less than 1 blank lin is found before
97- method definition, ignoring comments.
96+ It will trigger an error when less than 1 blank lin is found
97+ before method definition, ignoring comments.
9898 """
9999 result = self .check ("""# First comment line.
100100class X:
@@ -111,8 +111,8 @@ def b():
111111
112112 def test_top_level_fewer_blank_lines (self ):
113113 """
114- It will trigger an error when less 2 blank lines are found before top
115- level definitions.
114+ It will trigger an error when less 2 blank lines are found
115+ before top level definitions.
116116 """
117117 result = self .check ("""# First comment line.
118118# Second line of comment.
@@ -146,8 +146,8 @@ class AFarEnoughClass(object):
146146
147147 def test_top_level_more_blank_lines (self ):
148148 """
149- It will trigger an error when more 2 blank lines are found before top
150- level definitions.
149+ It will trigger an error when more 2 blank lines are found
150+ before top level definitions.
151151 """
152152 result = self .check ("""# First comment line.
153153# Second line of comment.
@@ -177,8 +177,8 @@ class AFarEnoughClass(object):
177177
178178 def test_method_more_blank_lines (self ):
179179 """
180- It will trigger an error when more than 1 blank line is found before
181- method definition
180+ It will trigger an error when more than 1 blank line is found
181+ before method definition
182182 """
183183 result = self .check ("""# First comment line.
184184
@@ -209,8 +209,8 @@ def veryFar(self):
209209
210210 def test_initial_lines_more_blank (self ):
211211 """
212- It will trigger an error for more than 2 blank lines before the first
213- line of actual code.
212+ It will trigger an error for more than 2 blank lines before the
213+ first line of actual code.
214214 """
215215 result = self .check ("""
216216
@@ -222,8 +222,8 @@ def some_function():
222222
223223 def test_blank_line_between_decorator (self ):
224224 """
225- It will trigger an error when the decorator is followed by a blank
226- line.
225+ It will trigger an error when the decorator is followed by a
226+ blank line.
227227 """
228228 result = self .check ("""# First line.
229229
@@ -245,8 +245,8 @@ def some_method(self):
245245
246246 def test_blank_line_decorator (self ):
247247 """
248- It will accept the decorators which are adjacent to the function and
249- method definition.
248+ It will accept the decorators which are adjacent to the function
249+ and method definition.
250250 """
251251 result = self .check ("""# First line.
252252
@@ -340,7 +340,8 @@ def b():
340340 def test_method_nested_fewer_follow_lines (self ):
341341 """
342342 It will trigger an error when less than 1 blank line is
343- found between a method and previous definitions, even when nested.
343+ found between a method and previous definitions, even when
344+ nested.
344345 """
345346 result = self .check ("""
346347def a():
@@ -374,7 +375,8 @@ class C:
374375 def test_method_nested_ok (self ):
375376 """
376377 Will not trigger an error when 1 blank line is found
377- found between a method and previous definitions, even when nested.
378+ found between a method and previous definitions, even when
379+ nested.
378380 """
379381 result = self .check ("""
380382def a():
@@ -394,8 +396,8 @@ class C:
394396
395397class TestBlankLinesTwisted (BlankLinesTestCase ):
396398 """
397- Tests for blank_lines with 3 blank lines for top level and 2 blank line
398- for methods as used by the Twisted coding style.
399+ Tests for blank_lines with 3 blank lines for top level and 2 blank
400+ line for methods as used by the Twisted coding style.
399401 """
400402
401403 def setUp (self ):
@@ -408,8 +410,8 @@ def tearDown(self):
408410
409411 def test_initial_lines_one_blanks (self ):
410412 """
411- It will accept less than 3 blank lines before the first line of actual
412- code.
413+ It will accept less than 3 blank lines before the first line of
414+ actual code.
413415 """
414416 result = self .check ("""
415417
@@ -422,8 +424,8 @@ def some_function():
422424
423425 def test_initial_lines_tree_blanks (self ):
424426 """
425- It will accept 3 blank lines before the first line of actual code,
426- as normal.
427+ It will accept 3 blank lines before the first line of actual
428+ code, as normal.
427429 """
428430 result = self .check ("""
429431
@@ -436,8 +438,8 @@ def some_function():
436438
437439 def test_top_level_fewer_blank_lines (self ):
438440 """
439- It will trigger an error when less 2 blank lines are found before top
440- level definitions.
441+ It will trigger an error when less 2 blank lines are found
442+ before top level definitions.
441443 """
442444 result = self .check ("""# First comment line.
443445# Second line of comment.
@@ -476,8 +478,8 @@ class AFarEnoughClass(object):
476478
477479 def test_top_level_more_blank_lines (self ):
478480 """
479- It will trigger an error when more 2 blank lines are found before top
480- level definitions.
481+ It will trigger an error when more 2 blank lines are found
482+ before top level definitions.
481483 """
482484 result = self .check ("""# First comment line.
483485# Second line of comment.
0 commit comments