def test_line_processor_lines(self):
     text = """
 aaa
 Bb b
 c"""
     proc = LineProcessor()
     lines = [line for line in proc.split_text_on_line_with_endings(text)]
     assert len(lines) == 3
    def split_text_on_lines(self, text: str):
        self.estimate = ParsedTextQualityEstimate()
        proc = LineProcessor()
        self.lines = [TypedLineOrPhrase.wrap_line(l) for l in
                      proc.split_text_on_line_with_endings(text)]
        proc.determine_line_length(text)
        self.estimate.avg_line_length = proc.line_length

        for line in self.lines:
            self.determine_line_type(line)