

def test_repo_help(self, capsys):
    with pytest.raises(SystemExit):
        self.parser.parse_args('repo --help'.split())
    (out, err) = capsys.readouterr()
    assert ('usage: ceph-deploy repo' in out)
    assert ('positional arguments:' in err)
    assert ('optional arguments:' in out)

dataset/ETHPy150Open ceph/ceph-deploy/ceph_deploy/tests/parser/test_repo.py TestParserRepo.test_repo_help/VarMisuse@59/86 `out`->`err`