def test_pathological_case(self): table.split_sentence(3, ["1234"])
def test_split_sentence_in_half(self): text, rest = table.split_sentence(3, self.cell) self.assertEquals(text, ["1", "2", "3"]) self.assertEquals(rest, ["4", "5", "6"])
def test_split_sentence_smaller_than_column_size(self): text, rest = table.split_sentence(7, self.cell) self.assertEquals(text, self.cell) self.assertEquals(len(rest), 0)