pylast/tests/request_test.py
Ivan Malison dd7fe504d3 Revert "Add failing test for #114" (This revert should be reverted later
as the test from this commit should be made to pass eventually)

This reverts commit 6d84446f03.
2015-01-07 23:31:48 -08:00

19 lines
457 B
Python

# -*- coding: utf-8 -*-
import mock
import pytest
import pylast
def mock_network():
return mock.Mock(
_get_ws_auth=mock.Mock(return_value=("", "", ""))
)
@pytest.mark.parametrize('unicode_artist', [u'\xe9lafdasfdsafdsa', u'ééééééé'])
def test_get_cache_key(unicode_artist):
request = pylast._Request(mock_network(), 'some_method',
params={'artist': unicode_artist})
request._get_cache_key()