Example #1
0
 def test_multiple_lines_with_custom_glue(self):
     self.assertEquals(text_to_line("one\ntwo", glue="##"), "one##two")
Example #2
0
 def test_array(self):
     self.assertEquals(text_to_line(["one", "two"]), "one two")
Example #3
0
 def test_empty_array(self):
     self.assertEquals(text_to_line([]), "")
Example #4
0
 def test_multiple_lines(self):
     self.assertEquals(text_to_line("one\ntwo"), "one two")
Example #5
0
 def test_one_line(self):
     self.assertEquals(text_to_line("one"), "one")
Example #6
0
 def test_empty_string(self):
     self.assertEquals(text_to_line(""), "")