blob: f91fd7072d0fd4d2bfd5c64b8f64e0b553d5d0eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import pytest
from ceph_volume.devices import lvm
class TestCreate(object):
def test_main_spits_help_with_no_arguments(self, capsys):
lvm.create.Create([]).main()
stdout, stderr = capsys.readouterr()
assert 'Create an OSD by assigning an ID and FSID' in stdout
def test_main_shows_full_help(self, capsys):
with pytest.raises(SystemExit):
lvm.create.Create(argv=['--help']).main()
stdout, stderr = capsys.readouterr()
assert 'Use the bluestore objectstore' in stdout
assert 'A physical device or logical' in stdout
|