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

Method check_1_string_arg

src/test/pybind/test_ceph_argparse.py:75–81  ·  view source on GitHub ↗
(self, prefix, command)

Source from the content-addressed store, hash-verified

73 '1']))
74
75 def check_1_string_arg(self, prefix, command):
76 self.assertEqual({}, validate_command(sigdict, [prefix, command]))
77 self._assert_valid_command([prefix, command, 'string'])
78 self.assertEqual({}, validate_command(sigdict, [prefix,
79 command,
80 'string',
81 'toomany']))
82
83 def check_0_or_1_string_arg(self, prefix, command):
84 self._assert_valid_command([prefix, command, 'string'])

Callers 11

test_getMethod · 0.80
test_get_keyMethod · 0.80
test_print_keyMethod · 0.80
test_delMethod · 0.80
test_failMethod · 0.80
test_scrubMethod · 0.80
test_deep_scrubMethod · 0.80
test_repairMethod · 0.80
test_getMethod · 0.80
test_delMethod · 0.80
test_existsMethod · 0.80

Calls 2

_assert_valid_commandMethod · 0.95
validate_commandFunction · 0.90

Tested by

no test coverage detected