MCPcopy
hub / github.com/celery/celery / test_format_queues

Method test_format_queues

t/unit/utils/test_text.py:42–45  ·  view source on GitHub ↗
(self, app)

Source from the content-addressed store, hash-verified

40 assert indent(RANDTEXT, 4) == RANDTEXT_RES
41
42 def test_format_queues(self, app):
43 app.amqp.queues = app.amqp.Queues(QUEUES)
44 assert (sorted(app.amqp.queues.format().split('\n')) ==
45 sorted([QUEUE_FORMAT1, QUEUE_FORMAT2]))
46
47 def test_ensure_newlines(self):
48 assert len(ensure_newlines('foo\nbar\nbaz\n').splitlines()) == 3

Callers

nothing calls this directly

Calls 2

QueuesMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected