Example #1
0
 def test_default_4_spaces(self):
     assert get_indent(None) == '    '
Example #2
0
 def test_2_spaces(self):
     assert get_indent('2 spaces') == '  '
Example #3
0
 def test_falsy_value(self):
     assert get_indent(False) == ''
Example #4
0
 def test_tabs(self):
     assert get_indent('tab') == '\t'