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