115
115
mock_block.path_to_kname.assert_called_with(self.test_syspath)
116
116
mock_get_dmsetup_uuid.assert_called_with(self.test_syspath)
118
119
@mock.patch('curtin.block.clear_holders.LOG')
119
120
@mock.patch('curtin.block.clear_holders.open')
120
121
@mock.patch('curtin.block.clear_holders.get_bcache_using_dev')
121
def test_shutdown_bcache(self, mock_get_bcache, mock_open, mock_log):
122
def test_shutdown_bcache(self, mock_get_bcache, mock_open,
122
124
"""test clear_holders.shutdown_bcache"""
123
127
mock_get_bcache.return_value = self.test_blockdev
124
128
clear_holders.shutdown_bcache(self.test_syspath)
125
129
mock_get_bcache.assert_called_with(self.test_syspath)