def test_to0(self): res = to_comment(self.a) self.assertEqual(res, '#a\n#b')
def source(self): """ Get the source from the document edited. :return: Source object. """ return Source(to_comment(self.toPlainText(), self._comment_prefix))