Exemplo n.º 1
0
    def runTest(self):
        f = open(self.psffile)
        psf = PSFReader(self.psffile)
        psf.open()

        psfascfile = open(self.psfascfile)

        for actual, expected in zip(psf.toPSFasc().split("\n"), psfascfile.readlines()):
            expected = psfAscAdjust(expected)
            actual = psfAscAdjust(actual)
##            print actual, "==", expected.strip()
            self.assertEqual(actual, expected.strip())
Exemplo n.º 2
0
    def runTest(self):
        f = open(self.psffile)
        psf = PSFReader(self.psffile)
        psf.open()

        psfascfile = open(self.psfascfile)

        for actual, expected in zip(psf.toPSFasc().split("\n"),
                                    psfascfile.readlines()):
            expected = psfAscAdjust(expected)
            actual = psfAscAdjust(actual)
            ##            print actual, "==", expected.strip()
            self.assertEqual(actual, expected.strip())
Exemplo n.º 3
0
def test_read_sweep_psf():
    filename = "psf/bwswp_acbw.sweep"
    psf = PSFReader(filename)
    psf.open()