'delete_volume should ensure that corresponding share is mounted.'

def test_delete_should_ensure_share_mounted(self):

    drv = self._driver
    drv._execute = mock.Mock()
    volume = self._simple_volume(display_name='volume-123')
    drv._ensure_share_mounted = mock.Mock()
    drv.delete_volume(volume)
    drv._ensure_share_mounted.assert_called_once_with(self.TEST_QUOBYTE_VOLUME)
    drv._execute.assert_called_once_with('rm', '-f', mock.ANY, run_as_root=False)
