'Test exception when vgc-cluster returns an error.'

@mock.patch('pwd.getpwnam', return_value=1)
@mock.patch('grp.getgrnam', return_value=1)
@mock.patch('socket.gethostbyname', return_value='123.123.123.123')
def test_vgc_cluster_not_present(self, mock_ghn, mock_grnam, mock_pwnam):

    self._fail_vgc_cluster = False
    self.driver.check_for_setup_error()
    self._fail_vgc_cluster = True
    self.assertRaises(exception.VolumeDriverException, self.driver.check_for_setup_error)
