コード例 #1
0
ファイル: test_topology.py プロジェクト: rwsmith7531/gmso
 def test_change_comb_rule(self):
     top = Topology()
     assert top.combining_rule == 'lorentz'
     top.combining_rule = 'geometric'
     assert top.combining_rule == 'geometric'
     with pytest.raises(GMSOError):
         top.combining_rule = 'kong'
コード例 #2
0
ファイル: test_topology.py プロジェクト: mosdef-hub/gmso
 def test_change_comb_rule(self):
     top = Topology()
     assert top.combining_rule == "lorentz"
     top.combining_rule = "geometric"
     assert top.combining_rule == "geometric"
     with pytest.raises(GMSOError):
         top.combining_rule = "kong"