Example #1
0
 def test_parse_blast_fits_empty_file(self):
     """Parses empty file correctly"""
     gene_detector = GeneDetector('madansi/tests/data/empty_file.fa',
                                  'madansi/tests/data/empty_file')
     self.assertEqual(gene_detector.parse_blast_hits(), [])
Example #2
0
 def test_parse_blast_fits_empty_file(self):
     """Parses empty file correctly"""
     gene_detector= GeneDetector('madansi/tests/data/empty_file.fa', 'madansi/tests/data/empty_file')
     self.assertEqual(gene_detector.parse_blast_hits(), [])
Example #3
0
 def test_parse_blast_hits_one(self):
     """Tests that the correct type of object is obtained from parsing one blast hit"""
     gene_detector = GeneDetector('madansi/tests/data/assembly.fa',
                                  'madansi/tests/data/one_blast_hit')
     self.assertTrue(
         isinstance(gene_detector.parse_blast_hits()[0], BlastHit))
Example #4
0
 def test_parse_blast_hits_one(self):
     """Tests that the correct type of object is obtained from parsing one blast hit"""
     gene_detector = GeneDetector('madansi/tests/data/assembly.fa', 'madansi/tests/data/one_blast_hit')
     self.assertTrue(isinstance(gene_detector.parse_blast_hits()[0], BlastHit))