def test_uses_multiple_devices(self, monkeypatch, fake_run): monkeypatch.setattr(api, 'get_vg', lambda **kw: True) api.reduce_vg(self.foo_volume, ['/dev/sda', '/dev/sdb']) expected = [ 'vgreduce', '--force', '--yes', 'foo', '/dev/sda', '/dev/sdb' ] assert fake_run.calls[0]['args'][0] == expected
def test_uses_multiple_devices(self, monkeypatch, fake_run): monkeypatch.setattr(api, 'get_vg', lambda **kw: True) api.reduce_vg(self.foo_volume, ['/dev/sda', '/dev/sdb']) expected = ['vgreduce', '--force', '--yes', 'foo', '/dev/sda', '/dev/sdb'] assert fake_run.calls[0]['args'][0] == expected