Beispiel #1
0
 def test_indent_empty_array(self):
     self.assertEquals(indent_text([]), "\t")
Beispiel #2
0
 def test_indent_with_custom_string(self):
     self.assertEquals(indent_text("one\ntwo", "##"), "##one\n##two")
Beispiel #3
0
 def test_indent_array(self):
     self.assertEquals(indent_text(["one", "two"]), "\tone\n\ttwo")
Beispiel #4
0
 def test_indent_multiple_lines(self):
     self.assertEquals(indent_text("one\ntwo"), "\tone\n\ttwo")
Beispiel #5
0
 def test_indent_single_line(self):
     self.assertEquals(indent_text("one"), "\tone")
Beispiel #6
0
 def test_indent_none(self):
     self.assertEquals(indent_text(None), "\tNone")
Beispiel #7
0
 def test_indent_empty_string(self):
     self.assertEquals(indent_text(""), "\t")