예제 #1
0
 def test_05_get_genome_raises_warning_if_no_genome(self):
     """
     this fails, but I think the warning works.
     
     output of running at cli with 'abcde'
     get_genome.py:21: NoMatchingSequenceWarning: No sequence was found for organism: abcd
     warnings.warn('No sequence was found for organism: ' + ORG_NAME, NoMatchingSequenceWarning)
     """
     self.assertWarns(get_genome.NoMatchingSequenceWarning,get_genome.get_genome_seq('abcd'))
     
     
예제 #2
0
 def test_03_get_genome_returns_correct_genome(self):
     self.assertEqual(get_genome.get_genome_seq(self.test_name).name,'gi|170079663|ref|NC_010473.1|')
예제 #3
0
 def test_04_get_genome_returns_full_genome(self):
     self.assertEqual(len(get_genome.get_genome_seq(self.test_name).seq._data),4686137)
예제 #4
0
 def test_02_get_genome_returns_correct_object(self):
     self.assertIsInstance(get_genome.get_genome_seq(self.test_name),SeqIO.SeqRecord)