示例#1
0
 def test_validates_nucleotides(self):
     with self.assertRaisesWithMessage(ValueError):
         count("GACT", 'X')
示例#2
0
 def test_repetitive_cytidine_gets_counted(self):
     self.assertEqual(count('CCCCC', 'C'), 5)
示例#3
0
 def test_counts_only_thymidine(self):
     self.assertEqual(count('GGGGGTAACCCGG', 'T'), 1)
 def test_validates_nucleotides(self):
     with self.assertRaises(ValueError):
         count("GACT", "X")
示例#5
0
 def test_empty_dna_string_has_no_adenosine(self):
     self.assertEqual(count('', 'A'), 0)
 def test_repetitive_cytidine_gets_counted(self):
     self.assertEqual(5, count("CCCCC", "C"))
 def test_counts_only_thymidine(self):
     self.assertEqual(1, count("GGGGGTAACCCGG", "T"))
 def test_empty_dna_string_has_no_adenosine(self):
     self.assertEqual(0, count("", "A"))
示例#9
0
 def test_validates_nucleotides(self):
     with self.assertRaisesWithMessage(ValueError):
         count("GACT", 'X')
示例#10
0
 def test_counts_only_thymidine(self):
     self.assertEqual(count('GGGGGTAACCCGG', 'T'), 1)
示例#11
0
 def test_repetitive_cytidine_gets_counted(self):
     self.assertEqual(count('CCCCC', 'C'), 5)
示例#12
0
 def test_empty_dna_string_has_no_adenosine(self):
     self.assertEqual(count('', 'A'), 0)