def METHOD_NAME(self, mock_get_edx_api_data):
    expected = factories.UserCredential()
    mock_get_edx_api_data.return_value = expected
    program_uuid = str(uuid.uuid4())
    actual = get_credentials(self.user, program_uuid=program_uuid)
    mock_get_edx_api_data.assert_called_once()
    call = mock_get_edx_api_data.mock_calls[0]
    __, __, kwargs = call
    querystring = {
        'username': self.user.username,
        'status': 'awarded',
        'only_visible': 'True',
        'program_uuid': program_uuid,
    }
    cache_key = f'{self.credentials_config.CACHE_KEY}.{self.user.username}.{program_uuid}'
    assert kwargs['querystring'] == querystring
    assert kwargs['cache_key'] == cache_key
    assert actual == expected