Coverage for biobb_analysis/test/unitests/test_ambertools/test_cpptraj_rmsf.py: 100%
32 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_rmsf import cpptraj_rmsf
6class TestCpptrajRmsfFirst():
7 def setup_class(self):
8 fx.test_setup(self, 'cpptraj_rmsf_first')
10 def teardown_class(self):
11 fx.test_teardown(self)
12 pass
14 def test_rmsf_first(self):
15 cpptraj_rmsf(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'])
20class TestCpptrajRmsfAverage():
21 def setup_class(self):
22 fx.test_setup(self, 'cpptraj_rmsf_average')
24 def teardown_class(self):
25 fx.test_teardown(self)
26 pass
28 def test_rmsf_average(self):
29 cpptraj_rmsf(properties=self.properties, **self.paths)
30 assert fx.not_empty(self.paths['output_cpptraj_path'])
31 assert fx.equal(self.paths['output_cpptraj_path'], self.paths['ref_output_cpptraj_path'])
34class TestCpptrajRmsfExperimental():
35 def setup_class(self):
36 fx.test_setup(self, 'cpptraj_rmsf_experimental')
38 def teardown_class(self):
39 fx.test_teardown(self)
40 pass
42 def test_rmsf_experimental(self):
43 cpptraj_rmsf(properties=self.properties, **self.paths)
44 assert fx.not_empty(self.paths['output_cpptraj_path'])
45 assert fx.equal(self.paths['output_cpptraj_path'], self.paths['ref_output_cpptraj_path'])