]>
git.proxmox.com Git - ceph.git/blob - ceph/src/ceph-volume/ceph_volume/tests/devices/lvm/test_create.py
2 from ceph_volume
.devices
import lvm
5 class TestCreate(object):
7 def test_main_spits_help_with_no_arguments(self
, capsys
):
8 lvm
.create
.Create([]).main()
9 stdout
, stderr
= capsys
.readouterr()
10 assert 'Create an OSD by assigning an ID and FSID' in stdout
12 def test_main_shows_full_help(self
, capsys
):
13 with pytest
.raises(SystemExit):
14 lvm
.create
.Create(argv
=['--help']).main()
15 stdout
, stderr
= capsys
.readouterr()
16 assert 'Use the bluestore objectstore' in stdout
17 assert 'A physical device or logical' in stdout