'_find_share should throw error if there is no share to host vol.'

def test_find_share_should_throw_error_if_there_is_not_enough_space(self):

    self._set_driver()
    drv = self._driver
    drv._mounted_shares = [self.TEST_NFS_EXPORT1, self.TEST_NFS_EXPORT2]
    with mock.patch.object(drv, '_get_capacity_info') as mock_get_capacity_info:
        mock_get_capacity_info.side_effect = [((5 * units.Gi), 0, (5 * units.Gi)), ((10 * units.Gi), 0, (10 * units.Gi))]
        self.assertRaises(exception.NfsNoSuitableShareFound, drv._find_share, self._simple_volume())
        calls = [mock.call(self.TEST_NFS_EXPORT1), mock.call(self.TEST_NFS_EXPORT2)]
        mock_get_capacity_info.assert_has_calls(calls)
        self.assertEqual(2, mock_get_capacity_info.call_count)
