D | test_textwrap.py | 31 def check(self, result, expect): argument 32 self.assertEqual(result, expect, 34 self.show(expect), self.show(result))) 36 def check_wrap(self, text, width, expect, **kwargs): argument 38 self.check(result, expect) 40 def check_split(self, text, expect): argument 42 self.assertEqual(result, expect, 44 "but got %r" % (expect, result)) 90 expect = ["This is a paragraph that already has line", 98 self.check(result, expect) [all …]
|