def testCreateHttpHeader_refresh(self):
    header = {u'Authorization': 'Bearer %s' % self.access_token_refreshed}

    with mock.patch('httplib2.Http', self.http):
      self.assertEqual(header, self.googleads_client.CreateHttpHeader())
      self.http.assert_called_once_with(
          ca_certs=None, proxy_info=self.proxy_info,
          disable_ssl_certificate_validation=False)
      self.mock_oauth2_credentials.refresh.assert_called_once_with(
          self.opener)
dataset/ETHPy150Open googleads/googleads-python-lib/tests/oauth2_test.py/GoogleRefreshTokenClientTest.testCreateHttpHeader_refresh/original