Swarm-NG  1.1
common.py
1 from math import *
2 import random
3 import swarmng
4 import unittest
5 from os import system,path
6 
7 TESTDIR = path.dirname(path.realpath(__file__))
8 
9 class abstract:
10  class IntegrationTest(unittest.TestCase):
11  cfg = None
12  destination_time = 1.0
13  def runTest(self):
14  swarmng.init(self.cfg)
15  integ = swarmng.Integrator.create( self.cfg )
16  self.ref = self.createEnsemble()
17  self.ens = self.ref.clone()
18 
19  integ.ensemble = self.ens
20  integ.destination_time = self.destination_time
21  integ.integrate()
22 
23  self.examine()