예제 #1
0
    def testIndex(self):
        chain = Chain(self.a[:])
        index_g = chain.data.index(Hetero('g'))
        self.assertEqual(chain.index('g'), index_g)

        chain = Chain(self.b[:])
        index_c = chain.data.index(Hetero('c'))
        self.assertEqual(chain.index('c'), index_c)

        chain = Chain(self.c[:])
        index_met = chain.data.index(Hetero('met'))
        self.assertEqual(chain.index('met'), index_met)
예제 #2
0
    def testIndex(self):
        chain = Chain(self.a[:])
        index_g = chain.data.index(Hetero('g'))
        self.assertEqual(chain.index('g'), index_g)

        chain = Chain(self.b[:])
        index_c = chain.data.index(Hetero('c'))
        self.assertEqual(chain.index('c'), index_c)

        chain = Chain(self.c[:])
        index_met = chain.data.index(Hetero('met'))
        self.assertEqual(chain.index('met'), index_met)
예제 #3
0
    def testIndex(self):
        chain = Chain(self.a[:])
        index_g = chain.data.index(Hetero("g"))
        self.assertEqual(chain.index("g"), index_g)

        chain = Chain(self.b[:])
        index_c = chain.data.index(Hetero("c"))
        self.assertEqual(chain.index("c"), index_c)

        chain = Chain(self.c[:])
        index_met = chain.data.index(Hetero("met"))
        self.assertEqual(chain.index("met"), index_met)