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

Method test_pg_missing_args_output

src/test/pybind/test_ceph_argparse.py:218–221  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

216 'invalid']))
217
218 def test_pg_missing_args_output(self):
219 ret, _, stderr = self._capture_output(['pg'], stderr=True)
220 self.assertEqual({}, ret)
221 self.assertRegex(stderr, re.compile('no valid command found.* closest matches'))
222
223 def test_pg_wrong_arg_output(self):
224 ret, _, stderr = self._capture_output(['pg', 'map', 'bad-pgid'],

Callers

nothing calls this directly

Calls 2

_capture_outputMethod · 0.80
compileMethod · 0.45

Tested by

no test coverage detected