def test_wrap_width_indent(self): self.assertEqual(util.wrap("this is a string", 10, " "), " this is\na string")
def test_wrap_width_indent_hanging(self): self.assertEqual(util.wrap("this is a string", 8, " ", " "), " this\n is a\n string")
def test_wrap_width(self): self.assertEqual(util.wrap("this is a string", 6), "this\nis a\nstring")