Example #1
0
 def testInvalidHead(self, type_=eIpcTransportType.MQUEUE):
     headType = eHeadType.HEAD + "hello.world!"
     assert not eHeadType.isValid(headType)
     try:
         TransportFactory.get(headType, self.transportDetails, self.transportDetails, self.transactionManager, self, self)
     except ApiParamError, e:
         assert e.item == headType
         assert len(e.allowedTypes) == 1
         assert eHeadType in e.allowedTypes
Example #2
0
 def testInvalidType(self):
     headType = eHeadType.HEAD
     type_ = eIpcTransportType.MQUEUE + "hello.world!"
     self.transportDetails._type = type_
     try:
         TransportFactory.get(headType, self.transportDetails, self.transactionManager, self, self)
     except ApiParamError, e:
         assert e.item == type_
         assert len(e.allowedTypes) == 1
         assert eIpcTransportType in e.allowedTypes
Example #3
0
 def testNeckMQueueNoArb(self):
     h = TransportFactory.getNoArb(eHeadType.NECK, self.transportDetails, self.transactionManager, self, self)
     assert isinstance(h, QueueTransporter)
     assert isinstance(h, iIpcTransport)
Example #4
0
 def testHeadMQueue(self):
     h = TransportFactory.get(eHeadType.HEAD, self.transportDetails, self.transactionManager, self, self)
     assert isinstance(h, ApiArb)
     assert isinstance(h, iIpcTransport)