Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def test_BioSQL::SeqInterfaceTest::test_addition (   self )
Check can add DBSeq objects together.

Definition at line 281 of file test_BioSQL.py.

        """Check can add DBSeq objects together."""
        test_seq = self.item.seq
        for other in [Seq("ACGT",test_seq.alphabet),
            test = test_seq + other
            self.assertEqual(str(test), str(test_seq) + str(other))
            self.assertTrue(isinstance(test, Seq))
            test = other + test_seq
            self.assertEqual(str(test), str(other) + str(test_seq))

Generated by  Doxygen 1.6.0   Back to index