Test_vo.py 768 Bytes
Newer Older
1
2
#!/usr/bin/python

3
import unittest
4
from Tests.UnitTests.UnitTest import UnitTest
5
6
from MDANSE import REGISTRY

7
class TestVO(UnitTest):
8

9
10
11
    def test(self):
        parameters = {}
        parameters['frames'] = (0, 5, 1)
12
        parameters['output_files'] = ('/tmp/output', ['netcdf'])
13
14
15
        parameters['pbc'] = True
        parameters['pbc_border_size'] = 0.0
        parameters['trajectory'] = '../../../Data/Trajectories/MMTK/waterbox_in_periodic_universe.nc'
16
17
        job = REGISTRY['job']['vo']()
        self.assertNotRaises(job.run, parameters, status=False)
18

19
20
21
22
23
def suite():
    loader = unittest.TestLoader()
    s = unittest.TestSuite()
    s.addTest(loader.loadTestsFromTestCase(TestVO))
    return s
24

25
26
if __name__ == '__main__':
    unittest.main(verbosity=2)