'Test alternate auth data for headers
Assert that when the alt data is provided for headers, after an
auth_request the data alt_data is cleaned-up.'

def test_request_with_alt_auth_cleans_alt(self):

    self.auth_provider.set_alt_auth_data('headers', (fake_identity.ALT_TOKEN, self._get_fake_alt_identity()))
    filters = {'service': 'compute', 'endpoint_type': 'publicURL', 'region': 'fakeRegion'}
    self.auth_provider.auth_request('GET', self.target_url, filters=filters)
    self.assertIsNone(self.auth_provider.alt_part)
    self.assertIsNone(self.auth_provider.alt_auth_data)
