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