Test_xplor.py 747 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 TestXPLOR(UnitTest):
8

9
10
11
12
    def test(self):
        parameters = {}
        parameters['dcd_file'] = '../../../Data/Trajectories/CHARMM/2vb1.dcd'
        parameters['fold'] = False
13
        parameters['output_file'] = ('/tmp/output', ['netcdf'])
14
        parameters['pdb_file'] = '../../../Data/Trajectories/CHARMM/2vb1.pdb'
15
16
        job = REGISTRY['job']['xplor']()
        self.assertNotRaises(job.run, parameters, status=False)
17

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

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