'Set up UUT and all the flags required for later fake_executes.'

@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 setUp(self, mock_ghn, mock_grnam, mock_pwnam):

    super(HGSTTestCase, self).setUp()
    self.mock_object(processutils, 'execute', self._fake_execute)
    self._fail_vgc_cluster = False
    self._fail_ip = False
    self._fail_network_list = False
    self._fail_domain_list = False
    self._empty_domain_list = False
    self._fail_host_storage = False
    self._fail_space_list = False
    self._fail_space_delete = False
    self._fail_set_apphosts = False
    self._fail_extend = False
    self._request_cancel = False
    self._return_blocked = 0
    self.configuration = mock.Mock(spec=conf.Configuration)
    self.configuration.safe_get = self._fake_safe_get
    self._reset_configuration()
    self.driver = HGSTDriver(configuration=self.configuration, execute=self._fake_execute)
