def test_read_from_file(self):
     with open(self.tmp, "w") as f:
         f.write(cfg)
     config.read(self.tmp)
     self.assertDictEqual(config, cfg_dict)
 def test_read_from_fp(self):
     config.read(StringIO(cfg))
     self.assertDictEqual(config, cfg_dict)