示例#1
0
文件: tests.py 项目: sharat87/figs
 def test_section(self):
     self.assertEqual(figs.dumps(self.conf.default),
             self.conf_content.split(None, 1)[-1])
示例#2
0
文件: tests.py 项目: sharat87/figs
 def test_no_sections(self):
     content = 'key1 = val1\nkey2 = val2\n\n'
     conf = figs.loads(content)
     self.assertEqual(figs.dumps(conf), content)
示例#3
0
文件: tests.py 项目: sharat87/figs
 def test_string(self):
     self.assertEqual(figs.dumps(self.conf), self.conf_content)