Back to index

salome-kernel  6.5.0
Public Member Functions
testcontainermanager.TestContainerManager Class Reference

List of all members.

Public Member Functions

def setUp
def test0
def test1
def test2

Detailed Description

Test with catalog :
<!DOCTYPE ResourcesCatalog>
<resources>
 <machine hostname="claui2c6" >
 </machine>
 <machine hostname="clt10br" >
 </machine>
</resources>

Definition at line 29 of file testcontainermanager.py.


Member Function Documentation

Definition at line 40 of file testcontainermanager.py.

00040 
00041   def setUp(self):
00042     pass

Definition at line 43 of file testcontainermanager.py.

00043 
00044   def test0(self):
00045     """"""
00046     rp=LifeCycleCORBA.ResourceParameters(policy="best",componentList=["PYHELLO"])
00047     p=LifeCycleCORBA.ContainerParameters(container_name="MyContainer",mode="start",resource_params=rp)
00048     co=cm.GiveContainer( p )
00049     self.assertEqual(co._get_name(), "/Containers/claui2c6/MyContainer")
00050     co=cm.GiveContainer( p )
00051     self.assertEqual(co._get_name(), "/Containers/clt10br/MyContainer")

Definition at line 52 of file testcontainermanager.py.

00052 
00053   def test1(self):
00054     """"""
00055     rp=LifeCycleCORBA.ResourceParameters(policy="best",componentList=["PYHELLO"])
00056     p=LifeCycleCORBA.ContainerParameters(container_name="MyContainer",mode="get",resource_params=rp)
00057     co=cm.GiveContainer( p )
00058     self.assertEqual(co._get_name(), "/Containers/claui2c6/MyContainer")
00059     co=cm.GiveContainer( p )
00060     self.assertEqual(co._get_name(), "/Containers/clt10br/MyContainer")

Definition at line 61 of file testcontainermanager.py.

00061 
00062   def test2(self):
00063     """"""
00064     rp=LifeCycleCORBA.ResourceParameters(policy="best",componentList=["PYHELLO"])
00065     p=LifeCycleCORBA.ContainerParameters(container_name="MyContainer",mode="getorstart",resource_params=rp)
00066     co=cm.GiveContainer( p )
00067     self.assertEqual(co._get_name(), "/Containers/claui2c6/MyContainer")
00068     co=cm.GiveContainer( p )
00069     self.assertEqual(co._get_name(), "/Containers/clt10br/MyContainer")
00070 


The documentation for this class was generated from the following file: