def testTextOnlyWhiteSpace(self): self.assertEqual(["As", "Python's", "creator,", "I'd", "like", "to", "say"], \ split_text("As Python's creator, I'd like to say ",' '))
def testEmptyText(self): self.assertEqual([], split_text(""))
def testTextWithSingleDelimiter(self): self.assertEqual([" As Python's creator", " I'd like to say "], \ split_text(" As Python's creator, I'd like to say ", ','))
def testTextWithoutRightDelimiter(self): self.assertEqual([" As Python's creator, I'd like to say "], \ split_text(" As Python's creator, I'd like to say ", "!>"))
def testTextWithMultipleDelimiters(self): self.assertEqual(["As", "Python", "s", "creator", "I", "d", "like", "to", "say"], \ split_text(" As Python's creator, I'd like to say ",", '"))