CPPUNIT_ASSERT(pyVal);
CPPUNIT_ASSERT(PyFloat_Check(pyVal));
CPPUNIT_ASSERT_DOUBLES_EQUAL(42., PyFloat_AsDouble(pyVal), 1.E-12);
+ p->shutdown(10); // kill all the containers
}
// Test the behaviour when there is an error in the python parser
resource_definition = resourceManager.GetResourceDefinition("localhost")
self.assertEqual(resource_definition.nb_node, NB_NODE)
+ def tearDown(self):
+ cm = salome.lcc.getContainerManager()
+ cm.ShutdownContainers()
+
def test_t1(self):
"""
Schema:
import sys
import pilot
import SALOMERuntime
+import salome
import loader
import unittest
import tempfile
self.e = pilot.ExecutorSwig()
pass
+ def tearDown(self):
+ salome.salome_init()
+ cm = salome.lcc.getContainerManager()
+ cm.ShutdownContainers()
+
def test1(self):
""" Test the conservation of the python context between two nodes sharing
the same container.