コード例 #1
0
ファイル: test_configparser.py プロジェクト: dhain/potpy
 def test_strips_comments(self):
     self.assertEqual(
         configparser.split_indent('foo#bar'), (0, 'foo'))
コード例 #2
0
ファイル: test_configparser.py プロジェクト: dhain/potpy
 def test_strips_trailing_spaces(self):
     self.assertEqual(configparser.split_indent('  foo '), (2, 'foo'))
コード例 #3
0
ファイル: test_configparser.py プロジェクト: dhain/potpy
 def test_leading_spaces(self):
     self.assertEqual(configparser.split_indent('  foo'), (2, 'foo'))
コード例 #4
0
ファイル: test_configparser.py プロジェクト: dhain/potpy
 def test_translates_tabs_to_8_spaces(self):
     self.assertEqual(configparser.split_indent('\t foo'), (9, 'foo'))
コード例 #5
0
ファイル: test_configparser.py プロジェクト: dhain/potpy
 def test_empty_string(self):
     self.assertEqual(configparser.split_indent(''), (0, ''))