'_ensure_shares_mounted should not save if mount raised an error.'

def test_ensure_shares_mounted_should_not_save_mounting_with_error(self):

    with mock.patch.object(self._driver, '_ensure_share_mounted') as mock_ensure_share_mounted:
        drv = self._driver
        mock_ensure_share_mounted.side_effect = Exception()
        drv._ensure_shares_mounted()
        mock_ensure_share_mounted.assert_called_once_with(self.TEST_QUOBYTE_VOLUME_WITHOUT_PROTOCOL)
        self.assertEqual(1, len(drv.shares))
        self.assertEqual(0, len(drv._mounted_shares))
