Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)