'Make at least one mount attempt even if configured for less.'

def test_ensure_share_mounted_at_least_one_attempt(self):

    min_num_attempts = 1
    num_attempts = 0
    self._set_driver()
    self.mock_object(self._driver._remotefsclient, 'mount', side_effect=Exception)
    drv = self._driver
    drv.configuration.nfs_mount_attempts = num_attempts
    drv.shares = {self.TEST_NFS_EXPORT1: ''}
    self.assertRaises(exception.NfsException, drv._ensure_share_mounted, self.TEST_NFS_EXPORT1)
    self.assertEqual(min_num_attempts, drv._remotefsclient.mount.call_count)
