def test_cli_rmsf_1(): """Test cli rmsf.""" cli_rmsf.main( toptest, [trajtest], selections=['name CA'], )
def test_cli_rmsf_error2(): """Test cli rmsd.""" with pytest.raises(TypeError): cli_rmsf.main( toptest, [trajtest], selections=[], )
def test_cli_rmsf_2(): """Test cli rmsd.""" cli_rmsf.main( toptest, [trajtest], selections=None, export='rmsfs.csv', plot=True, plotvars={'filename': 'rmsfs.pdf'}, ) p1 = Path('rmsfs.csv') p2 = Path('rmsfs.pdf') assert p1.exists() assert p2.exists() p1.unlink() p2.unlink()