Пример #1
0
 def test_get_setting_section(self):
     ini_file = Ini()
     ini_file['test'] = ['magicPeople', 'wizard']
     self.assertEqual(ini_file.get_setting_section('test'), 'magicPeople')
Пример #2
0
 def test_add_setting_with_section(self):
     ini_file = Ini()
     ini_file['test'] = ('people', 'wizard')
     self.assertEqual(ini_file['test'], 'wizard')
     self.assertEqual(ini_file.get_setting_section('test'), 'people')