def test_simple_example(self): alignments = list(EmbossIterator(StringIO(simple_example))) self.assertEqual(len(alignments), 1) self.assertEqual(len(alignments[0]), 4) self.assertEqual( [r.id for r in alignments[0]], ["IXI_234", "IXI_235", "IXI_236", "IXI_237"] )
def test_pair_example2(self): alignments = list(EmbossIterator(StringIO(pair_example2))) self.assertEqual(len(alignments), 5) self.assertEqual(len(alignments[0]), 2) self.assertEqual([r.id for r in alignments[0]], ["ref_rec", "gi|94968718|receiver"]) self.assertEqual([r.id for r in alignments[4]], ["ref_rec", "gi|94970041|receiver"])
def test_pair_example3(self): alignments = list(EmbossIterator(StringIO(pair_example3))) self.assertEqual(len(alignments), 1) self.assertEqual(len(alignments[0]), 2) self.assertEqual([r.id for r in alignments[0]], ["asis", "asis"])