<reponame>jecker7/BioPlate
import unittest

from BioPlate.manipulation import BioPlateManipulation


class TestBioPlateManipulation(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        """
        This function is run one time at the beginning of tests
        :return:
        """
        pass

    @classmethod
    def tearDownClass(cls):
        """
        This function is run one time at the end of tests
        :return:
        """
        pass

    def setUp(self):
        """
        This function is run every time at the beginning of each test
        :return:
        """
        self.BPM = BioPlateManipulation()

    def tearDown(self):
        """
        This function is run every time at the end of each test
        :return:
        """
        pass

#    def test_add_values(self):
#        self.assertEqual(
#            self.BPM._add_values({"A": {3: 5}}), "{'A': {3: 5}} have a wrong format"
#        )

    def test_args_analysis(self):
        self.assertEqual(self.BPM._args_analyse(12, ["bob1", "bob2"]), (12, ["bob1", "bob2"]))
        self.assertEqual(self.BPM._args_analyse({"test" : 12}), ({"test" : 12}, None))
        self.assertEqual( self.BPM._args_analyse("A[2-3]", ["Bob", "Marc"]), ("A[2-3]", ["Bob", "Marc"]))


if __name__ == "__main__":
    unittest.main()

import unittest

from BioPlate.manipulation import BioPlateManipulation


class TestBioPlateManipulation(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        """
        This function is run one time at the beginning of tests
        :return:
        """
        pass

    @classmethod
    def tearDownClass(cls):
        """
        This function is run one time at the end of tests
        :return:
        """
        pass

    def setUp(self):
        """
        This function is run every time at the beginning of each test
        :return:
        """
        self.BPM = BioPlateManipulation()

    def tearDown(self):
        """
        This function is run every time at the end of each test
        :return:
        """
        pass

#    def test_add_values(self):
#        self.assertEqual(
#            self.BPM._add_values({"A": {3: 5}}), "{'A': {3: 5}} have a wrong format"
#        )

    def test_args_analysis(self):
        self.assertEqual(self.BPM._args_analyse(12, ["bob1", "bob2"]), (12, ["bob1", "bob2"]))
        self.assertEqual(self.BPM._args_analyse({"test" : 12}), ({"test" : 12}, None))
        self.assertEqual( self.BPM._args_analyse("A[2-3]", ["Bob", "Marc"]), ("A[2-3]", ["Bob", "Marc"]))


if __name__ == "__main__":
    unittest.main()
This function is run one time at the beginning of tests         :return: This function is run one time at the end of tests         :return: This function is run every time at the beginning of each test         :return: This function is run every time at the end of each test         :return: #    def test_add_values(self): #        self.assertEqual( #            self.BPM._add_values({"A": {3: 5}}), "{'A': {3: 5}} have a wrong format" #        )