Esempio n. 1
0
 def test_validates_nucleotides(self):
     with self.assertRaises(ValueError):
         count("GACT", 'X')
Esempio n. 2
0
 def test_counts_only_thymidine(self):
     self.assertEqual(1, count('GGGGGTAACCCGG', 'T'))
Esempio n. 3
0
 def test_dna_has_no_uracil(self):
     self.assertEqual(0, count('GATTACA', 'U'))
Esempio n. 4
0
 def test_empty_dna_string_has_no_adenosine(self):
     self.assertEqual(0, count('', 'A'))
Esempio n. 5
0
 def test_repetitive_cytidine_gets_counted(self):
     self.assertEqual(5, count('CCCCC', 'C'))
Esempio n. 6
0
 def test_validates_nucleotides(self):
     with self.assertRaises(ValueError):
         count("GACT", 'X')
Esempio n. 7
0
 def test_counts_only_thymidine(self):
     self.assertEqual(1, count('GGGGGTAACCCGG', 'T'))
Esempio n. 8
0
 def test_repetitive_cytidine_gets_counted(self):
     self.assertEqual(5, count('CCCCC', 'C'))
Esempio n. 9
0
 def test_empty_dna_string_has_no_adenosine(self):
     self.assertEqual(0, count('', 'A'))
Esempio n. 10
0
 def test_counting_nucs(self):
     self.assertEqual((20, 12, 17, 21), dna.count('AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC'))