예제 #1
0
 def test_split_words_empty(self):
     self.assertEquals(lipsum._split_words(""), [])
예제 #2
0
 def test_split_words(self):
     self.assertEquals(lipsum._split_words("One two three four"), 
             ["One", "two", "three", "four"])
     self.assertEquals(lipsum._split_words("  One    two  three  four   "), 
             ["One", "two", "three", "four"])