Пример #1
0
 def test_empties(self):
     lines = empty_lines_to_whitespace(['', ''])
     self.assertSize(lines, 2)
     for line in lines:
         self.assertNotEqual(line, '')
         self.assertEqual(line.strip(), '')
         self.assertNotIn('\n', line)
Пример #2
0
 def test_empties(self):
     lines = empty_lines_to_whitespace(['', ''])
     self.assertSize(lines, 2)
     for line in lines:
         self.assertNotEqual(line, '')
         self.assertEqual(line.strip(), '')
         self.assertNotIn('\n', line)
Пример #3
0
 def test_non_empties(self):
     original = ['line_1', 'line_2']
     self.assertEqual(empty_lines_to_whitespace(original), original)
Пример #4
0
 def test_non_empties(self):
     original = ['line_1', 'line_2']
     self.assertEqual(empty_lines_to_whitespace(original), original)