test_nodenames.py 260 B

123456789101112
  1. from __future__ import absolute_import, unicode_literals
  2. from kombu import Queue
  3. from celery.utils.nodenames import worker_direct
  4. class test_worker_direct:
  5. def test_returns_if_queue(self):
  6. q = Queue('foo')
  7. assert worker_direct(q) is q