예제 #1
0
 def test_in_good_position_near_bad(self):
     paragraph = [
         'A:\n', '    E: Ee\n', '    B:\n', '        C: Cc\n',
         '        D: Dd\n'
     ]
     line = Line('    B:\n', paragraph)
     self.assertTrue(line.in_good_position())
예제 #2
0
 def test_in_good_position_1st_element(self):
     line = Line('A:\n', self.paragraph)
     self.assertTrue(line.in_good_position())
예제 #3
0
 def test_in_bad_position(self):
     line = Line('    B: Bb\n', self.paragraph)
     self.assertFalse(line.in_good_position())
예제 #4
0
 def test_in_good_position(self):
     line = Line('        C: Cc\n', self.paragraph)
     self.assertTrue(line.in_good_position())
예제 #5
0
 def test_in_good_position_near_bad_2breaklines(self):
     parag = ['A:\n', 'B:\n', '      C: Cc\n']
     line = Line('B:\n', parag)
     self.assertTrue(line.in_good_position())