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