def test_section(self): self.assertEqual(figs.dumps(self.conf.default), self.conf_content.split(None, 1)[-1])
def test_no_sections(self): content = 'key1 = val1\nkey2 = val2\n\n' conf = figs.loads(content) self.assertEqual(figs.dumps(conf), content)
def test_string(self): self.assertEqual(figs.dumps(self.conf), self.conf_content)