+ def test_exception(self):
+ from nepi.execution.resource import ResourceFactory
+
+ ResourceFactory.register_type(ErrorApplication)
+ ResourceFactory.register_type(Node)
+ ResourceFactory.register_type(Interface)
+ ResourceFactory.register_type(Channel)
+
+ ec = ExperimentController()
+
+ node = ec.register_resource("Node")
+
+ apps = list()
+ for i in xrange(10):
+ app = ec.register_resource("ErrorApplication")
+ ec.register_connection(app, node)
+ apps.append(app)
+
+
+ ec.deploy()
+
+ ec.wait_finished(apps)
+
+ ec.shutdown()
+
+ self.assertTrue(ec._fm._failure_level == FailureLevel.RM_FAILURE)
+
+
+ def ztest_start_with_condition(self):