コード例 #1
0
ファイル: test_queue.py プロジェクト: python-celium/celium
class TestQueuesHandler(object):

    @pytest.fixture(autouse=True)
    def queue_handler(self):
        self.qh = QueuesHandler()

    def test_create(self):
        q = self.qh.queue('foo')

    def test_dont_create(self):
        with pytest.raises(KeyError):
            self.qh.queue('foo', create_if_not_exist=False)
コード例 #2
0
ファイル: test_queue.py プロジェクト: python-celium/celium
 def queue_handler(self):
     self.qh = QueuesHandler()