MCPcopy Create free account
hub / github.com/ceph/ceph / _assert_valid_command

Method _assert_valid_command

src/test/pybind/test_ceph_argparse.py:57–59  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

55class TestArgparse(unittest.TestCase):
56
57 def _assert_valid_command(self, args):
58 result = validate_command(sigdict, args)
59 self.assertNotIn(result, [{}, None])
60
61 def check_1_natural_arg(self, prefix, command):
62 self._assert_valid_command([prefix, command, '1'])

Callers 15

check_1_natural_argMethod · 0.95
check_1_string_argMethod · 0.95
check_no_argMethod · 0.95
test_statMethod · 0.80
test_getmapMethod · 0.80
test_dump_jsonMethod · 0.80
test_dump_pools_jsonMethod · 0.80
test_dump_pools_stuckMethod · 0.80
one_pgidMethod · 0.80

Calls 1

validate_commandFunction · 0.90

Tested by

no test coverage detected