コード例 #1
0
    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
コード例 #2
0
    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
コード例 #3
0
 def test_chi1_nodep(self, PSFDCD):
     with no_deprecated_call():
         sel = PSFDCD.segments[0].residues[12].chi1_selection()  # LYS
コード例 #4
0
 def test_omega_nodep(self, PSFDCD):
     with no_deprecated_call():
         osel = PSFDCD.segments[0].residues[7].omega_selection()
コード例 #5
0
 def test_psi_nodep(self, PSFDCD):
     with no_deprecated_call():
         psisel = PSFDCD.segments[0].residues[9].psi_selection()
コード例 #6
0
ファイル: test_groups.py プロジェクト: zouyel/mdanalysis
 def test_SegmentGroup_nowarn_getitem(self, u):
     with no_deprecated_call():
         u.segments[0]
コード例 #7
0
ファイル: test_groups.py プロジェクト: zouyel/mdanalysis
 def test_AtomGroup_nowarn_segids_attribute(self, u):
     with no_deprecated_call():
         getattr(u.atoms, 'segids')
コード例 #8
0
ファイル: test_groups.py プロジェクト: zouyel/mdanalysis
 def test_AtomGroup_nowarn_getitem_index(self, u):
     with no_deprecated_call():
         u.atoms[0]