# Path: inmembrane/tests/PluginTestBase.py
# class PluginTestBase(unittest.TestCase):
#     _plugin_name = ""
# 
#     def setUp(self):
#         """
#         Sets up a directory, a parameters dictionary and a proteins dictionary
#         object in preparation for running a test of a plugin.
# 
#         Creates a temporary directory (eg /tmp/.inmembrane_signalp_web_TleeRw ),
#         copies the test input data (input.fasta) into it and changes the
#         current working directory.
# 
#         Should be subclassed adding a method with the specific test(s) for
#         the plugin. The subclass should set self._plugin_name to the name of
#         the plugin.
#         """
#         self.test_data_dir = os.path.join(
#             os.path.abspath(
#                 os.path.dirname(inmembrane.tests.__file__)), self._plugin_name)
# 
#         self.output_dir = tempfile.mkdtemp(
#             prefix=".inmembrane_%s_" % (self._plugin_name))
#         shutil.copyfile(os.path.join(self.test_data_dir, "input.fasta"),
#                         os.path.join(self.output_dir, "input.fasta"))
#         os.chdir(self.output_dir)
#         helpers.silence_log(True)
# 
#         self.params = inmembrane.get_params()
#         self.params['fasta'] = "input.fasta"
#         self.seqids, self.proteins = \
#             helpers.create_proteins_dict(self.params['fasta'])


import unittest
import inmembrane
from semantic_version import Version as SemanticVersion
from inmembrane.tests.PluginTestBase import PluginTestBase



class TestBomp(PluginTestBase):
    _plugin_name = "bomp_web"

    def test_version(self):
        # parse the version number to ensure it's valid (invalid version number
        # formats will raise a ValueError)
        version = SemanticVersion(inmembrane.__version__)

# Path: inmembrane/tests/PluginTestBase.py
# class PluginTestBase(unittest.TestCase):
#     _plugin_name = ""
# 
#     def setUp(self):
#         """
#         Sets up a directory, a parameters dictionary and a proteins dictionary
#         object in preparation for running a test of a plugin.
# 
#         Creates a temporary directory (eg /tmp/.inmembrane_signalp_web_TleeRw ),
#         copies the test input data (input.fasta) into it and changes the
#         current working directory.
# 
#         Should be subclassed adding a method with the specific test(s) for
#         the plugin. The subclass should set self._plugin_name to the name of
#         the plugin.
#         """
#         self.test_data_dir = os.path.join(
#             os.path.abspath(
#                 os.path.dirname(inmembrane.tests.__file__)), self._plugin_name)
# 
#         self.output_dir = tempfile.mkdtemp(
#             prefix=".inmembrane_%s_" % (self._plugin_name))
#         shutil.copyfile(os.path.join(self.test_data_dir, "input.fasta"),
#                         os.path.join(self.output_dir, "input.fasta"))
#         os.chdir(self.output_dir)
#         helpers.silence_log(True)
# 
#         self.params = inmembrane.get_params()
#         self.params['fasta'] = "input.fasta"
#         self.seqids, self.proteins = \
#             helpers.create_proteins_dict(self.params['fasta'])


# Path: inmembrane/tests/test_misc.py
import unittest
import inmembrane
from semantic_version import Version as SemanticVersion
from inmembrane.tests.PluginTestBase import PluginTestBase




class TestBomp(PluginTestBase):
    _plugin_name = "bomp_web"

    def test_version(self):
        # parse the version number to ensure it's valid (invalid version number
        # formats will raise a ValueError)
        version = SemanticVersion(inmembrane.__version__)

        self.assertEqual(str(version), inmembrane.__version__)