3
from configobj import ConfigObj
5
class TestConfigObj(unittest.TestCase):
7
def test_order_preserved(self):
16
c['section']['section'] = {}
17
c['section']['section2'] = {}
18
c['section']['section3'] = {}
23
self.assertEqual(c2.scalars, ['a', 'b', 'c'])
24
self.assertEqual(c2.sections, ['section', 'section2', 'section3'])
25
self.assertEqual(c2['section'].scalars, ['a', 'b', 'c'])
26
self.assertEqual(c2['section'].sections, ['section', 'section2', 'section3'])
28
self.assertFalse(c['section'] is c2['section'])
29
self.assertFalse(c['section']['section'] is c2['section']['section'])
b'\\ No newline at end of file'