def test_wordWidth8CutEqualToTrue(self): word = wordwrap('hello goodbye', 8, '\n', True) self.assertEqual(word, 'hello go\nodbye')
def test_wordWidth8BreakWithnewLine(self): word = wordwrap('hello goodbye', 8) self.assertEqual(word,'hello\ngoodbye')
def test_wordWidth8BreakWithDollarSymbol(self): word = wordwrap('hello goodbye', 8, '$') self.assertEqual(word, 'hello$goodbye')
def test_wordLengthLessThenCutWidth(self): self.assertEqual(wordwrap('hello'), 'hello')