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())
def test_in_good_position_1st_element(self): line = Line('A:\n', self.paragraph) self.assertTrue(line.in_good_position())
def test_in_bad_position(self): line = Line(' B: Bb\n', self.paragraph) self.assertFalse(line.in_good_position())
def test_in_good_position(self): line = Line(' C: Cc\n', self.paragraph) self.assertTrue(line.in_good_position())
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())