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