コード例 #1
0
 def test_PeptideBackBoneBondSelector_select_all(self):
     """
      test PetideBackBone select: all bonds
     """
     ppbbSel = PeptideBackBoneBondSelector()
     ats = self.mol.allAtoms
     bnds = ats.bonds[0]
     resultBnds = ppbbSel.select(bnds)
     #print 'all_ppbbbonds:len(resultBnds)=', len(resultBnds)
     self.assertEqual(len(resultBnds) , 132)
コード例 #2
0
 def test_PeptideBackBoneBondSelector_select_none(self):
     """
      test PetideBackBone select: no bonds
     """
     ppbbSel = PeptideBackBoneBondSelector()
     ats = self.mol.allAtoms[4:8]
     bnds = ats.bonds[0]
     resultBnds = ppbbSel.select(bnds)
     #print 'no_ppbbbonds:len(resultBnds)=', len(resultBnds)
     self.assertEqual(len(resultBnds) , 0)
コード例 #3
0
 def test_PeptideBackBoneBondSelector_select_all(self):
     """
      test PetideBackBone select: all bonds
     """
     ppbbSel = PeptideBackBoneBondSelector()
     ats = self.mol.allAtoms
     bnds = ats.bonds[0]
     resultBnds = ppbbSel.select(bnds)
     #print 'all_ppbbbonds:len(resultBnds)=', len(resultBnds)
     self.assertEqual(len(resultBnds), 132)
コード例 #4
0
 def test_PeptideBackBoneBondSelector_select_none(self):
     """
      test PetideBackBone select: no bonds
     """
     ppbbSel = PeptideBackBoneBondSelector()
     ats = self.mol.allAtoms[4:8]
     bnds = ats.bonds[0]
     resultBnds = ppbbSel.select(bnds)
     #print 'no_ppbbbonds:len(resultBnds)=', len(resultBnds)
     self.assertEqual(len(resultBnds), 0)
コード例 #5
0
 def test_PeptideBackBoneBondSelector_select_some(self):
     """
      test PetideBackBone select: some bonds
     """
     ppbbSel = PeptideBackBoneBondSelector()
     ats = self.mol.allAtoms[:50]
     bnds = ats.bonds[0]
     resultBnds = ppbbSel.select(bnds)
     #print 'some_ppbbbonds:len(resultBnds)=', len(resultBnds)
     #self.assertEqual(len(resultBnds) , 22)
     self.assertEqual(len(resultBnds) , 17)
コード例 #6
0
 def test_PeptideBackBoneBondSelector_select_some(self):
     """
      test PetideBackBone select: some bonds
     """
     ppbbSel = PeptideBackBoneBondSelector()
     ats = self.mol.allAtoms[:50]
     bnds = ats.bonds[0]
     resultBnds = ppbbSel.select(bnds)
     #print 'some_ppbbbonds:len(resultBnds)=', len(resultBnds)
     #self.assertEqual(len(resultBnds) , 22)
     self.assertEqual(len(resultBnds), 17)