Exemple #1
0
 def test_strips_comments(self):
     self.assertEqual(
         configparser.split_indent('foo#bar'), (0, 'foo'))
Exemple #2
0
 def test_strips_trailing_spaces(self):
     self.assertEqual(configparser.split_indent('  foo '), (2, 'foo'))
Exemple #3
0
 def test_leading_spaces(self):
     self.assertEqual(configparser.split_indent('  foo'), (2, 'foo'))
Exemple #4
0
 def test_translates_tabs_to_8_spaces(self):
     self.assertEqual(configparser.split_indent('\t foo'), (9, 'foo'))
Exemple #5
0
 def test_empty_string(self):
     self.assertEqual(configparser.split_indent(''), (0, ''))