Coverage for biobb_mem/test/unitests/test_ambertools/test_cpptraj_density.py: 100%
35 statements
« prev ^ index » next coverage.py v7.6.11, created at 2025-02-10 11:25 +0000
« prev ^ index » next coverage.py v7.6.11, created at 2025-02-10 11:25 +0000
1from biobb_common.tools import test_fixtures as fx
2from biobb_mem.ambertools.cpptraj_density import cpptraj_density
5class TestCpptrajDensityDefault():
6 def setup_class(self):
7 fx.test_setup(self, 'cpptraj_density')
9 def teardown_class(self):
10 fx.test_teardown(self)
11 pass
13 def test_cpptraj_density(self):
14 returncode = cpptraj_density(properties=self.properties, **self.paths)
15 assert fx.not_empty(self.paths['output_cpptraj_path'])
16 assert fx.equal(self.paths['output_cpptraj_path'], self.paths['ref_output_cpptraj_path'])
17 assert fx.exe_success(returncode)
20class TestCpptrajDensityMask():
21 def setup_class(self):
22 fx.test_setup(self, 'cpptraj_density_mask')
24 def teardown_class(self):
25 fx.test_teardown(self)
26 pass
28 def test_cpptraj_density(self):
29 returncode = cpptraj_density(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'])
32 assert fx.exe_success(returncode)
35class TestCpptrajDensityComplex():
36 def setup_class(self):
37 fx.test_setup(self, 'cpptraj_density_complex')
39 def teardown_class(self):
40 fx.test_teardown(self)
41 pass
43 def test_cpptraj_density(self):
44 returncode = cpptraj_density(properties=self.properties, **self.paths)
45 assert fx.not_empty(self.paths['output_cpptraj_path'])
46 assert fx.equal(self.paths['output_cpptraj_path'], self.paths['ref_output_cpptraj_path'])
47 assert fx.exe_success(returncode)