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