Coverage for biobb_analysis/test/unitests/test_ambertools/test_cpptraj_rms.py: 100%
38 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-14 14:38 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-14 14:38 +0000
1# type: ignore
2from biobb_common.tools import test_fixtures as fx
3from biobb_analysis.ambertools.cpptraj_rms import cpptraj_rms
6class TestCpptrajRmsFirst():
7 def setup_class(self):
8 fx.test_setup(self, 'cpptraj_rms_first')
10 def teardown_class(self):
11 fx.test_teardown(self)
12 pass
14 def test_rms_first(self):
15 cpptraj_rms(properties=self.properties, **self.paths)
16 assert fx.not_empty(self.paths['output_cpptraj_path'])
17 assert fx.equal(self.paths['output_cpptraj_path'], self.paths['ref_output_cpptraj_path'])
18 assert fx.not_empty(self.paths['output_traj_path'])
19 assert fx.equal(self.paths['output_traj_path'], self.paths['ref_output_traj_path'])
22class TestCpptrajRmsAverage():
23 def setup_class(self):
24 fx.test_setup(self, 'cpptraj_rms_average')
26 def teardown_class(self):
27 fx.test_teardown(self)
28 pass
30 def test_rms_average(self):
31 cpptraj_rms(properties=self.properties, **self.paths)
32 assert fx.not_empty(self.paths['output_cpptraj_path'])
33 assert fx.equal(self.paths['output_cpptraj_path'], self.paths['ref_output_cpptraj_path'])
34 assert fx.not_empty(self.paths['output_traj_path'])
35 assert fx.equal(self.paths['output_traj_path'], self.paths['ref_output_traj_path'])
38class TestCpptrajRmsExperimental():
39 def setup_class(self):
40 fx.test_setup(self, 'cpptraj_rms_experimental')
42 def teardown_class(self):
43 fx.test_teardown(self)
44 pass
46 def test_rms_experimental(self):
47 cpptraj_rms(properties=self.properties, **self.paths)
48 assert fx.not_empty(self.paths['output_cpptraj_path'])
49 assert fx.equal(self.paths['output_cpptraj_path'], self.paths['ref_output_cpptraj_path'])
50 assert fx.not_empty(self.paths['output_traj_path'])
51 assert fx.equal(self.paths['output_traj_path'], self.paths['ref_output_traj_path'])