Ejemplo n.º 1
0
 def test_pathological_case(self):
     table.split_sentence(3, ["1234"])
Ejemplo n.º 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"])
Ejemplo n.º 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)
Ejemplo n.º 4
0
 def test_pathological_case(self):
     table.split_sentence(3, ["1234"])
Ejemplo n.º 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"])
Ejemplo n.º 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)