def test_universe_loading_no_warning(self):
     assert_nowarns(UserWarning, lambda x: mda.Universe(x), GRO)
示例#2
0
 def test_SegmentGroup_nowarn_getitem(self):
     assert_nowarns(DeprecationWarning, lambda x: self.u.segments[x], 0)
示例#3
0
 def test_AtomGroup_nowarn_getitem_index(self):
     assert_nowarns(DeprecationWarning, lambda x: self.u.atoms[x], 0)
示例#4
0
 def test_AtomGroup_nowarn_segids_attribute(self):
     assert_nowarns(DeprecationWarning, lambda x: getattr(self.u.atoms, x),
                    "segids")
示例#5
0
 def test_universe_loading_no_warning(self):
     assert_nowarns(UserWarning, lambda x: mda.Universe(x), GRO)