def main(): import journal journal.debug('CompositeNeutronScatterer_Impl').activate() journal.debug('HomogeneousNeutronScatterer').activate() journal.debug('IsotropicKernel').activate() unittest.main() return
nb.from_npyarr(b) self.assertEqual(nb[3].state.velocity[0], 33) self.assertEqual(nb[2].state.position[0], 20) return pass # end of TestCase def pysuite(): suite1 = unittest.makeSuite(TestCase) return unittest.TestSuite((suite1, )) def main(): #debug.activate() pytests = pysuite() alltests = unittest.TestSuite((pytests, )) res = unittest.TextTestRunner(verbosity=2).run(alltests) import sys sys.exit(not res.wasSuccessful()) if __name__ == "__main__": unittest.main() # main() # version __id__ = "$Id: mcni_TestCase.py 1126 2011-04-10 03:05:40Z linjiao $" # End of file
def main(): unittest.main()
def main(): unittest.main() return
import unittestX as unittest import journal class TestCase(unittest.TestCase): def test1(self): args = [ 'MCVINE_MPI_LAUNCHER=serial', 'python', 'componentfactory_demoapp.py', '--mode=worker', '--ncount=10', '--buffer_size=5', '--output-dir=componentfactory_testcase_out', '--overwrite-datafiles', ] cmd = ' '.join(args) import os if os.system(cmd): raise RuntimeError('%s failed') return pass # end of TestCase if __name__ == "__main__": unittest.main() # End of file
self.assertEqual(nb[3].state.velocity[0], 33) self.assertEqual(nb[2].state.position[0], 20) return pass # end of TestCase def pysuite(): suite1 = unittest.makeSuite(TestCase) return unittest.TestSuite( (suite1,) ) def main(): #debug.activate() pytests = pysuite() alltests = unittest.TestSuite( (pytests, ) ) res = unittest.TextTestRunner(verbosity=2).run(alltests) import sys; sys.exit(not res.wasSuccessful()) if __name__ == "__main__": unittest.main() # main() # version __id__ = "$Id: mcni_TestCase.py 1126 2011-04-10 03:05:40Z linjiao $" # End of file