Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ef3607ca authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[lib] Tests: restore for PID/bcx files

parent 40e4bb67
No related branches found
No related tags found
No related merge requests found
...@@ -109,9 +109,7 @@ class ErrorRep(object): ...@@ -109,9 +109,7 @@ class ErrorRep(object):
class TestMCLAnaLyzer(unittest.TestCase): class TestMCLAnaLyzer(unittest.TestCase):
""" """Unit tests for MCLAnalyser class"""
Unit tests for MCLAnalyser
"""
def test_lit_sol_equal(self): def test_lit_sol_equal(self):
""" """
...@@ -139,21 +137,20 @@ class TestMCLAnaLyzer(unittest.TestCase): ...@@ -139,21 +137,20 @@ class TestMCLAnaLyzer(unittest.TestCase):
res = lit_sol_equal(sol1, sol2) res = lit_sol_equal(sol1, sol2)
self.assert_(not res, 'Error in lit_sol inequality: number case') self.assert_(not res, 'Error in lit_sol inequality: number case')
@unittest.skip("Test files not provided")
def test_load1(self): def test_load1(self):
""" """Load from a bcx file"""
Load from a bcx file
"""
rep = ErrorRep() rep = ErrorRep()
mcla = MCLAnalyser(rep) mcla = MCLAnalyser(rep)
mcla.build_from_chart_file("../ucl/examples/test_tgfb_ref_300511.bcx") filename = pkg_resources.resource_filename(
__name__, # package name
"examples/delay1.bcx"
)
mcla.build_from_chart_file(filename)
res = rep.error res = rep.error
self.assert_(not res, 'Error in load1') self.assert_(not res, "Error during the load of bcx file")
def test_load2(self): def test_load2(self):
""" """Load from a cadlang file"""
Load from a cadlang file
"""
rep = ErrorRep() rep = ErrorRep()
mcla = MCLAnalyser(rep) mcla = MCLAnalyser(rep)
filename = pkg_resources.resource_filename( filename = pkg_resources.resource_filename(
...@@ -162,18 +159,19 @@ class TestMCLAnaLyzer(unittest.TestCase): ...@@ -162,18 +159,19 @@ class TestMCLAnaLyzer(unittest.TestCase):
) )
mcla.build_from_cadlang(filename) mcla.build_from_cadlang(filename)
res = rep.error res = rep.error
self.assert_(not res, 'Error in load2') self.assert_(not res, "Error during the load of cadlang file")
@unittest.skip("Test files not provided")
def test_load3(self): def test_load3(self):
""" """Load from a PID file"""
Load from a PID file
"""
rep = ErrorRep() rep = ErrorRep()
mcla = MCLAnalyser(rep) mcla = MCLAnalyser(rep)
mcla.build_from_pid_file("../ucl/examples/test_plk3_pathway.xml") filename = pkg_resources.resource_filename(
__name__, # package name
"../../guard_transitions/translators/tests/tgf_cano.xml"
)
mcla.build_from_pid_file(filename)
res = rep.error res = rep.error
self.assert_(not res, 'Error in load3') self.assert_(not res, "during the load of PID xml file")
def test_delay1(self): def test_delay1(self):
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment