(self)
| 56 | self.assertEqual(count_lines_with_wrapping("1\n2\n3\n"), 3) |
| 57 | |
| 58 | def test_empty_lines(self): |
| 59 | self.check(expected=1, text='\n', linewidth=80) |
| 60 | self.check(expected=2, text='\n\n', linewidth=80) |
| 61 | self.check(expected=10, text='\n' * 10, linewidth=80) |
| 62 | |
| 63 | def test_long_line(self): |
| 64 | self.check(expected=3, text='a' * 200, linewidth=80) |