Ejemplo n.º 1
0
        # v. 1.4.5 may not exists
        boundary = argTools.Version('1.4.5')
        if self.fileVersionObj < boundary:
            environment.printDebug('pre %s update necessary.' % str(boundary))
            self._pre144_pmtrObjUpdates()
            self._pre145_cleanExtraAux()

        # pre 2.0
        boundary = argTools.Version('2.0.0')
        if self.fileVersionObj < boundary:
            environment.printDebug('pre %s update necessary.' % str(boundary))
            self._pre200_basic()

        # return data
        return self.aData, self.pData, self.tData


#-----------------------------------------------------------------||||||||||||--
class Test(unittest.TestCase):
    def runTest(self):
        pass

    def testDummy(self):
        self.assertEqual(True, True)


#-----------------------------------------------------------------||||||||||||--
if __name__ == '__main__':
    from athenaCL.test import baseTest
    baseTest.main(Test)
Ejemplo n.º 2
0
        args = ('ls','e',('bg','rc',(5,10,20)),('ru',0,20),('ru',30,50))
        self._parameterRunner(factory(args), 20)

        args = ('ls','t',('bg','rp',(5,10,20)),('ru',0,50),('ru',0,50))
        self._parameterRunner(factory(args), 20)




    #-----------------------------------------------------------------------||--
    def testAccumulator(self):
        args = ('accumulator', 20, ('waveSine', 'e', 30, 0, 10, 0),)
        self._parameterRunner(factory(args), 20)

        args = ('accumulator', 20, ('bg', 'rc', (100, 10, 1)))
        self._parameterRunner(factory(args), 20)







#-----------------------------------------------------------------||||||||||||--
if __name__ == '__main__':
    from athenaCL.test import baseTest
    baseTest.main(Test)


# command line tests