'do_setup shouldn\'t throw shares file error if host and share set.'

def test_setup_should_not_throw_error_if_host_and_share_set(self):

    drv = nfs.NfsDriver(configuration=self.configuration)
    self.override_config('nas_host', 'nfs-host1')
    self.override_config('nas_share_path', '/export')
    mock_os_path_exists = self.mock_object(os.path, 'exists')
    mock_os_path_exists.return_value = False
    mock_set_nas_sec_options = self.mock_object(nfs.NfsDriver, 'set_nas_security_options')
    mock_set_nas_sec_options.return_value = True
    mock_execute = self.mock_object(drv, '_execute')
    mock_execute.return_value = True
    drv.do_setup(self.context)
    mock_os_path_exists.assert_not_called()
