# ~/managers/operatorsFiling/pathspawnerTest.py
import unittest
import os
import shutil

from pathspawner import PathSpawner as ps

class PathSpawnerTest(unittest.TestCase):

    def setUp(self):
        #self.ps = PathSpawner() #instance for non: static & class methods.
        self.pwd = os.getcwd()

    <EMAIL>("reason for skipping")
    def test_1_hatch_path_to_nmodl(self):
        mod_path, lib_path = ps.hatch_path_to_nmodl(modelscale="cells",
                                                    modelname="XY2000Author")
        self.assertEqual(os.path.dirname(mod_path),
                         os.path.dirname(os.path.dirname(os.path.dirname(lib_path))))

    <EMAIL>("reason for skipping")
    def test_2_exception_hatch_path_to_nmodl(self):
        self.assertRaises(ValueError, ps.hatch_path_to_nmodl, )
 
    <EMAIL>("reason for skipping")
    def test_3_hatch_path_to_response(self):
        response_path = ps.hatch_path_to_response(modelscale="cells",
                                                  modelname="XY2000Author")
        self.assertEqual(
              os.path.dirname(os.path.dirname(os.path.dirname(response_path))),
              self.pwd )

    <EMAIL>("reason for skipping")
    def test_4_exception_hatch_path_to_response(self):
        self.assertRaises(ValueError, ps.hatch_path_to_response, )
 
if __name__ == '__main__':
    unittest.main()

# ~/managers/operatorsFiling/pathspawnerTest.py
import unittest
import os
import shutil

from pathspawner import PathSpawner as ps

class PathSpawnerTest(unittest.TestCase):

    def setUp(self):
        #self.ps = PathSpawner() #instance for non: static & class methods.
        self.pwd = os.getcwd()

    <EMAIL>("reason for skipping")
    def test_1_hatch_path_to_nmodl(self):
        mod_path, lib_path = ps.hatch_path_to_nmodl(modelscale="cells",
                                                    modelname="XY2000Author")
        self.assertEqual(os.path.dirname(mod_path),
                         os.path.dirname(os.path.dirname(os.path.dirname(lib_path))))

    <EMAIL>("reason for skipping")
    def test_2_exception_hatch_path_to_nmodl(self):
        self.assertRaises(ValueError, ps.hatch_path_to_nmodl, )
 
    <EMAIL>("reason for skipping")
    def test_3_hatch_path_to_response(self):
        response_path = ps.hatch_path_to_response(modelscale="cells",
                                                  modelname="XY2000Author")
        self.assertEqual(
              os.path.dirname(os.path.dirname(os.path.dirname(response_path))),
              self.pwd )

    <EMAIL>("reason for skipping")
    def test_4_exception_hatch_path_to_response(self):
        self.assertRaises(ValueError, ps.hatch_path_to_response, )
 
if __name__ == '__main__':
    unittest.main()

# ~/managers/operatorsFiling/pathspawnerTest.py #self.ps = PathSpawner() #instance for non: static & class methods.