'secrets is imported and those values should be used.'

def test_get_gcp_libcloud_credentials_import(self):

    class FakeSecrets:
        def __init__(self):
            self.GCE_PARAMS = ['secrets-sa', 'secrets-file.json']
            self.GCE_KEYWORD_PARAMS = {}
            self.__file__ = 'THIS_IS_A_FAKEFILE_FOR_TESTING'
    fake_secrets = FakeSecrets()
    patcher = mock.patch.dict(sys.modules, {'secrets': fake_secrets})
    patcher.start()
    module = FakeModule()
    actual = _get_gcp_libcloud_credentials(module, service_account_email=None, credentials_file=None, project_id='proj-id')
    expected = ('secrets-sa', 'secrets-file.json', 'proj-id')
    self.assertEqual(expected, actual)
    fake_secrets.GCE_KEYWORD_PARAMS['project'] = 'new-proj-id'
    fake_secrets.GCE_PARAMS[1] = 'my-creds.json'
    module = FakeModule()
    actual = _get_gcp_libcloud_credentials(module, service_account_email='my-sa', credentials_file=None, project_id=None)
    expected = ('my-sa', 'my-creds.json', 'new-proj-id')
    self.assertEqual(expected, actual)
    patcher.stop()
