コード例 #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)
コード例 #4
0
 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)
コード例 #6
0
 def test_repetitive_cytidine_gets_counted(self):
     self.assertEqual(5, count("CCCCC", "C"))
コード例 #7
0
 def test_counts_only_thymidine(self):
     self.assertEqual(1, count("GGGGGTAACCCGG", "T"))
コード例 #8
0
 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)