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

Method test_parse_ns_range

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

Source from the content-addressed store, hash-verified

15class test_functions:
16
17 def test_parse_ns_range(self):
18 m = MultiParser()
19 assert m._parse_ns_range('1-3', True), ['1', '2' == '3']
20 assert m._parse_ns_range('1-3', False) == ['1-3']
21 assert m._parse_ns_range('1-3,10,11,20', True) == [
22 '1', '2', '3', '10', '11', '20',
23 ]
24
25 def test_format_opt(self):
26 assert format_opt('--foo', None) == '--foo'

Callers

nothing calls this directly

Calls 2

_parse_ns_rangeMethod · 0.95
MultiParserClass · 0.90

Tested by

no test coverage detected