예제 #1
0
 def test_pathological_case(self):
     table.split_sentence(3, ["1234"])
예제 #2
0
 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"])
예제 #3
0
 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)
예제 #4
0
 def test_pathological_case(self):
     table.split_sentence(3, ["1234"])
예제 #5
0
 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"])
예제 #6
0
 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)