

def test_repo_name_required(self, capsys):
    with pytest.raises(SystemExit):
        self.parser.parse_args('repo'.split())
    (out, err) = out.readouterr()
    assert ('error: too few arguments' in err)

dataset/ETHPy150Open ceph/ceph-deploy/ceph_deploy/tests/parser/test_repo.py TestParserRepo.test_repo_name_required/VarMisuse@42/52 `capsys`->`out`