Esempio n. 1
0
    def testReadWriteReconstruction(self):
        config1 = Config.ReconstructionConfigParser()
        config2 = Config.ReconstructionConfigParser()
        config3 = Config.ReconstructionConfigParser()

        tf = tempfile.mktemp()
        with open(tf, "w") as tfh:
            config1.write(tfh)
        with open(tf) as tfh2:
            config2.readfp(tfh2)

        config3.read(tf)
Esempio n. 2
0
 def testConfigParserConstruction(self):
     cfg1 = Config.FRETConfigParser()
     cfg2 = Config.ReconstructionConfigParser()
     cfg3 = Config.BurstDistAVGConfigParser()
     self.assertEqual(cfg1.get("Burst Size Distribution", "method"),
                      "analytical")
     self.assertEqual(cfg2.get("Burst Size Distribution", "method"),
                      "analytical")
     self.assertEqual(cfg3.get("Burst Size Distribution", "method"),
                      "analytical")