Test_rmt.py 814 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 TestRMT(UnitTest):
8

9
10
11
12
13
    def test(self):
        parameters = {}
        parameters['axis'] = 'c'
        parameters['frames'] = (0, 10, 1)
        parameters['lower_leaflet'] = 'DMPC'
14
        parameters['output_files'] = ('/tmp/output', ['netcdf'])
15
16
        parameters['trajectory'] = '../../../Data/Trajectories/MMTK/dmpc_in_periodic_universe.nc'
        parameters['upper_leaflet'] = 'DMPC'
17
18
        job = REGISTRY['job']['rmt']()
        self.assertNotRaises(job.run, parameters, status=False)
19

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

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