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)
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)
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)
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)
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)
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)