Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/b/i/biopython-1.63/Tests/test_SCOP_Raf.py   biopython(Download)
    def testParse(self):
        """Can we parse a RAF record?"""
        r = Raf.SeqMap(self.rafLine)
 
        self.assertEqual(r.pdbid, "101m")
        self.assertEqual(res.atom, "A")
 
        r = Raf.SeqMap(self.rafLine2)
        res = r.res[r.index("6A", chainid="A")]
        self.assertEqual(res.resid, "6A")
        self.assertEqual(res.atom, "E")
 
    def testSeqMapAdd(self):
        r2 = Raf.SeqMap(self.rafLine2)
        r3 = Raf.SeqMap(self.rafLine3)
    def testSeqMapSlice(self):
        r = Raf.SeqMap(self.rafLine)
        r = r[ r.index("124"): r.index("135")+1]
        self.assertEqual(len(r.res), 12)
 

src/b/i/biopython-HEAD/Tests/test_SCOP_Raf.py   biopython(Download)
    def testParse(self):
        """Can we parse a RAF record?"""
        r = Raf.SeqMap(self.rafLine)
 
        self.assertEqual(r.pdbid, "101m")
        self.assertEqual(res.atom, "A")
 
        r = Raf.SeqMap(self.rafLine2)
        res = r.res[r.index("6A", chainid="A")]
        self.assertEqual(res.resid, "6A")
        self.assertEqual(res.atom, "E")
 
    def testSeqMapAdd(self):
        r2 = Raf.SeqMap(self.rafLine2)
        r3 = Raf.SeqMap(self.rafLine3)
    def testSeqMapSlice(self):
        r = Raf.SeqMap(self.rafLine)
        r = r[ r.index("124"): r.index("135")+1]
        self.assertEqual(len(r.res), 12)