def test_is_removable(self, hwd):
read_data = "1"
with patch("srv.salt._modules.cephdisks.open", mock_open(read_data=read_data)) as mock_file:
expect = True
out = hwd._is_removable('disk/in/question')
assert expect == out
评论列表
文章目录