]> git.proxmox.com Git - ceph.git/blob - ceph/src/ceph-volume/ceph_volume/tests/devices/lvm/test_create.py
update ceph source to reef 18.2.0
[ceph.git] / ceph / src / ceph-volume / ceph_volume / tests / devices / lvm / test_create.py
1 import pytest
2 from ceph_volume.devices import lvm
3
4
5 class TestCreate(object):
6
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
11
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
18