Example #1
0
 def testUnknownQueueType(self):
     XYZ = "xyz"
     assert XYZ not in [PyRQIfaceType.PYRQ, PyRQIfaceType.MULTIPROCESSING_QUEUE]
     try:
         PyRQIfaceFactory.get(type_=XYZ)
     except UnknownInterfaceError, _e:
         assert True
Example #2
0
 def testMultiprocessingQ(self):
     q = PyRQIfaceFactory.get(type_=PyRQIfaceType.MULTIPROCESSING_QUEUE)
     assert isinstance(q, QIface)
Example #3
0
 def testPyRQ(self):
     q = PyRQIfaceFactory.get(type_=PyRQIfaceType.PYRQ)
     assert isinstance(q, PyRQIface)