예제 #1
0
 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")
예제 #2
0
 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")
예제 #3
0
 def test_complement_dna_simple(self):
     self.assertEqual(list(assignment2.complement_dna("ACGGT")), list("TGCCA"))
예제 #4
0
 def test_complement_dna_simple(self):
     self.assertEqual(list(assignment2.complement_dna("ACGGT")), list("TGCCA"))