@@ -56,8 +56,6 @@ def test_populate_topoaa_molecules():
5656 }
5757 populate_topology_molecule_params (topoaa )
5858 assert "mol2" in topoaa
59- assert topoaa ["mol2" ]["prot_segid" ] == "B"
60- assert topoaa ["mol1" ]["prot_segid" ] == "A"
6159 assert topoaa ["mol2" ]["cyclicpept" ] is False
6260 assert topoaa ["mol1" ]["cyclicpept" ] is True
6361 assert isnan (topoaa ["mol2" ]["hisd_1" ])
@@ -74,12 +72,10 @@ def test_populate_topoaa_molecules_2():
7472 """Test mols are polated."""
7573 topoaa = {
7674 "molecules" : ["file1.pdb" , "file2.pdb" ],
77- "mol2" : {"cyclicpept" : True , "prot_segid" : "D" },
75+ "mol2" : {"cyclicpept" : True },
7876 }
7977 populate_topology_molecule_params (topoaa )
8078 assert "mol1" in topoaa
81- assert topoaa ["mol1" ]["prot_segid" ] == "A"
82- assert topoaa ["mol2" ]["prot_segid" ] == "D"
8379
8480 assert topoaa ["mol1" ]["cyclicpept" ] is False
8581 assert topoaa ["mol2" ]["cyclicpept" ] is True
@@ -99,27 +95,20 @@ def test_populate_topoaa_molecules_3():
9995 """Test mols are polated."""
10096 topoaa = {
10197 "molecules" : ["file1.pdb" , "file2.pdb" , "file3.pdb" ],
102- "mol2" : {"cyclicpept" : True , "prot_segid" : "C" },
98+ "mol2" : {"cyclicpept" : True },
10399 }
104100 populate_topology_molecule_params (topoaa )
105101 assert "mol1" in topoaa
106- assert topoaa ["mol1" ]["prot_segid" ] == "A"
107- assert topoaa ["mol2" ]["prot_segid" ] == "C"
108- assert topoaa ["mol3" ]["prot_segid" ] == "B"
109102
110103
111104def test_populate_topoaa_molecules_4 ():
112105 """Test mols are polated with prot_segid sequence."""
113106 topoaa = {
114107 "molecules" : ["file1.pdb" , "file2.pdb" , "file3.pdb" , "file4.pdb" ],
115- "mol3" : {"cyclicpept" : True , "prot_segid" : "A" },
108+ "mol3" : {"cyclicpept" : True },
116109 }
117110 populate_topology_molecule_params (topoaa )
118111 assert "mol1" in topoaa
119- assert topoaa ["mol1" ]["prot_segid" ] == "B"
120- assert topoaa ["mol2" ]["prot_segid" ] == "C"
121- assert topoaa ["mol3" ]["prot_segid" ] == "A"
122- assert topoaa ["mol4" ]["prot_segid" ] == "D"
123112
124113
125114def test_populate_mol_params ():
0 commit comments