fix base object hasing. Closes #120 .

This commit is contained in:
Ivan Malison 2015-01-08 16:05:28 -08:00
parent 3f9137a700
commit de31fc33f6
3 changed files with 5 additions and 4 deletions

View file

@ -24,5 +24,6 @@ def test_get_cache_key(artist):
@pytest.mark.parametrize('obj', [pylast.Artist(u'B\xe9l', mock_network())])
def test_cast(obj):
def test_cast_and_hash(obj):
assert type(six.text_type(obj)) is six.text_type
assert isinstance(hash(obj), int)