예제 #1
0
 def test_missing(self):
     bases = "ACGT"
     self.promoter.seq = bases
     assert not is_invalid_promoter_sequence(self.promoter, 1, 5)
     for base in bases:
         self.promoter.seq = bases.replace(base, "")
         assert is_invalid_promoter_sequence(self.promoter, 0, 5)
예제 #2
0
 def test_too_big(self):
     self.promoter.seq = "ACGT"
     assert not is_invalid_promoter_sequence(self.promoter, 1, 5)
     assert is_invalid_promoter_sequence(self.promoter, 1, 3)