Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(9) | Call(6) | Derive(0) | Import(3)
src/p/y/PyRQ-0.4.1/PyRQ/Iface/PyRQIfaceFactory.py PyRQ(Download)
from PyRQ.Iface.PyRQIface import PyRQIface from PyRQ.Iface.PyRQIfaceType import PyRQIfaceType from PyRQ.Iface.QIface import QIface from PyRQ.Iface.UnknownInterfaceError import UnknownInterfaceError
def get(type_, *args, **kwargs): if type_==PyRQIfaceType.PYRQ: return PyRQIface(*args, **kwargs) elif type_==PyRQIfaceType.MULTIPROCESSING_QUEUE: return QIface(*args, **kwargs)
src/p/y/PyRQ-0.4.1/test/IFace/TestQueueIface.py PyRQ(Download)
''' from PyRQ.Iface.QIface import QIface import unittest class TestCreate(unittest.TestCase): def setUp(self): self.iface = QIface()
assert not isinstance(iface, QIface) assert isinstance(iface, basestring) iface = QIface(iface) assert self.iface._namespace==namespace assert iface._namespace!=namespace
assert isinstance(iface, basestring) assert self.iface._namespace==namespace iface = QIface(iface) assert iface._namespace!=namespace assert len(QIface._cache.keys())==count iface.close() class TestQueueIfaceNoUnderlyingQueue(unittest.TestCase): def setUp(self): self.iface = QIface()
src/p/y/PyRQ-0.4.1/test/IFace/TestPyRQIfaceFactory.py PyRQ(Download)
from PyRQ.Iface.PyRQIfaceFactory import PyRQIfaceFactory from PyRQ.Iface.PyRQIfaceType import PyRQIfaceType from PyRQ.Iface.QIface import QIface from PyRQ.Iface.UnknownInterfaceError import UnknownInterfaceError import unittest