Example #1
0
    def runText(self, textType):
        filename = tempfile.mktemp()
        usedFilename = self.calib.writeText(filename + textType)
        fromText = IsrProvenance.readText(usedFilename)
        self.assertEqual(self.calib, fromText)

        # Test generic interface:
        fromGeneric = IsrCalib.readText(usedFilename)
        self.assertEqual(self.calib, fromGeneric)
Example #2
0
 def runText(self, textType):
     filename = tempfile.mktemp()
     usedFilename = self.calib.writeText(filename + textType)
     fromText = IsrProvenance.readText(usedFilename)
     self.assertEqual(self.calib, fromText)