MCPcopy Create free account
hub / github.com/celery/celery / test_format_opt

Method test_format_opt

t/unit/apps/test_multi.py:25–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 ]
24
25 def test_format_opt(self):
26 assert format_opt('--foo', None) == '--foo'
27 assert format_opt('-c', 1) == '-c 1'
28 assert format_opt('--log', 'foo') == '--log=foo'
29
30
31class test_NamespacedOptionParser:

Callers

nothing calls this directly

Calls 1

format_optFunction · 0.90

Tested by

no test coverage detected