def test_no_deprecation(self, universe, instruction): """Test that the warnings are not issued when they should not. See issue #1476. """ with no_deprecated_call(): exec(instruction) #pylint: disable=W0122
def test_chi1_nodep(self, PSFDCD): with no_deprecated_call(): sel = PSFDCD.segments[0].residues[12].chi1_selection() # LYS
def test_omega_nodep(self, PSFDCD): with no_deprecated_call(): osel = PSFDCD.segments[0].residues[7].omega_selection()
def test_psi_nodep(self, PSFDCD): with no_deprecated_call(): psisel = PSFDCD.segments[0].residues[9].psi_selection()
def test_SegmentGroup_nowarn_getitem(self, u): with no_deprecated_call(): u.segments[0]
def test_AtomGroup_nowarn_segids_attribute(self, u): with no_deprecated_call(): getattr(u.atoms, 'segids')
def test_AtomGroup_nowarn_getitem_index(self, u): with no_deprecated_call(): u.atoms[0]