'_ensure_shares_mounted should save share if mounted with success.'

def test_ensure_shares_mounted_should_save_mounting_successfully(self):

    self._set_driver()
    drv = self._driver
    config_data = []
    config_data.append(self.TEST_NFS_EXPORT1)
    drv.configuration.nfs_shares_config = self.TEST_SHARES_CONFIG_FILE
    with mock.patch.object(drv, '_read_config_file') as mock_read_config:
        with mock.patch.object(drv, '_ensure_share_mounted') as mock_ensure:
            mock_read_config.return_value = config_data
            drv._ensure_share_mounted(self.TEST_NFS_EXPORT1)
            mock_ensure.assert_called_once_with(self.TEST_NFS_EXPORT1)
