<commit_before>"""This is the test suite for Orthologs."""

#from OrthoEvol.Orthologs.Blast import CompGenBLASTn
#import unittest
#
#class TestOrthologs(unittest.TestCase):
#    """Test the Orthologs module."""
#    def test_phylo(self):
#        """Test the Phylogenetics modules."""
#    def test_align():
#        """Test the Align module."""
#    def test_compgenetics():
#        """Test the Comparative Genetics module."""
#    def test_genbank():
#        """Test the GenBank module."""
#    def test_blast():
#        """Test the Blast module."""
#    def test_biosql():
#        """Test the BioSQL module."""



# TODO-SDH Write tests for Orthologs module using unit tests.<commit_msg>Added a test for OrthoBlastN.<commit_after>"""This is the test suite for Orthologs."""
import unittest
from shutil import rmtree

from OrthoEvol.Orthologs.Blast import OrthoBlastN


class TestOrthologs(unittest.TestCase):
    """Test the Orthologs module."""

    def setUp(self, project="orthology-gpcr"):
        self.project = project

    def delete_project(self, project_path):
        rmtree(project_path)

    def test_orthoblastn(self):
        """Test the OrthoBlastN class."""
        with self.assertRaises(EnvironmentError):
            gpcr_blastn = OrthoBlastN(project=self.project, method=3,
                                      save_data=True, acc_file="gpcr.csv",
                                      copy_from_package=True)
            self.assertEqual(gpcr_blastn.acc_file, "gpcr.csv")
            self.assertTrue(gpcr_blastn.copy_from_package)
        self.delete_project(project_path=self.project)


if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.1190619362597715, 'fraction_numerical': 0.0006013229104028864, 'mean_word_length': 2.961904761904762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4477202', 'n_tokens_mistral': 525, 'n_tokens_neox': 510, 'n_words': 122}