@@ -118,15 +118,15 @@ def _make_comp_ms_test_func(comp_sys_test_func):
118118 """
119119
120120 def comp_ms_test_func (iobj ):
121- assert hasattr (iobj , "ms_1" ) and hasattr (
122- iobj , "ms_2 "
123- ), "Multi-system objects must be present"
121+ assert hasattr (iobj , "ms_1" ) and hasattr (iobj , "ms_2" ), (
122+ "Multi-system objects must be present "
123+ )
124124 iobj .assertEqual (len (iobj .ms_1 ), len (iobj .ms_2 ))
125125 keys = [ii .formula for ii in iobj .ms_1 ]
126126 keys_2 = [ii .formula for ii in iobj .ms_2 ]
127- assert sorted (keys ) == sorted (
128- keys_2
129- ), f"Keys of two MS are not equal: { keys } != { keys_2 } "
127+ assert sorted (keys ) == sorted (keys_2 ), (
128+ f"Keys of two MS are not equal: { keys } != { keys_2 } "
129+ )
130130 for kk in keys :
131131 iobj .system_1 = iobj .ms_1 [kk ]
132132 iobj .system_2 = iobj .ms_2 [kk ]
@@ -197,17 +197,17 @@ def test_is_nopbc(self):
197197
198198class MSAllIsPBC :
199199 def test_is_pbc (self ):
200- assert hasattr (self , "ms_1" ) and hasattr (
201- self , "ms_2 "
202- ), "Multi-system objects must be present and iterable"
200+ assert hasattr (self , "ms_1" ) and hasattr (self , "ms_2" ), (
201+ "Multi-system objects must be present and iterable "
202+ )
203203 self .assertTrue (all ([not ss .nopbc for ss in self .ms_1 ]))
204204 self .assertTrue (all ([not ss .nopbc for ss in self .ms_2 ]))
205205
206206
207207class MSAllIsNoPBC :
208208 def test_is_nopbc (self ):
209- assert hasattr (self , "ms_1" ) and hasattr (
210- self , "ms_2 "
211- ), "Multi-system objects must be present and iterable"
209+ assert hasattr (self , "ms_1" ) and hasattr (self , "ms_2" ), (
210+ "Multi-system objects must be present and iterable "
211+ )
212212 self .assertTrue (all ([ss .nopbc for ss in self .ms_1 ]))
213213 self .assertTrue (all ([ss .nopbc for ss in self .ms_2 ]))
0 commit comments