def test_complement_dna_large(self): print("If this test hangs you are not using generators correctly.") s = itertools.islice(assignment2.complement_dna(random_strand()), 1000) for b in s: self.assertIn(b, "ACGT")
def test_complement_dna_simple(self): self.assertEqual(list(assignment2.complement_dna("ACGGT")), list("TGCCA"))