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)
def runText(self, textType): filename = tempfile.mktemp() usedFilename = self.calib.writeText(filename + textType) fromText = IsrProvenance.readText(usedFilename) self.assertEqual(self.calib, fromText)