Library, Playlist, XSPF and Group now also hashable, with a helper function to reduce test duplication. For #82.

This commit is contained in:
hugovk 2014-03-02 20:17:34 +02:00
parent b29b002b70
commit 6db87f8a27
2 changed files with 65 additions and 54 deletions

View file

@ -1979,6 +1979,8 @@ class Library(_BaseObject):
user = None
__hash__ = _BaseObject.__hash__
def __init__(self, user, network):
_BaseObject.__init__(self, network)
@ -2138,6 +2140,8 @@ class Playlist(_BaseObject):
id = None
user = None
__hash__ = _BaseObject.__hash__
def __init__(self, user, id, network):
_BaseObject.__init__(self, network)
@ -2697,6 +2701,8 @@ class Group(_BaseObject):
name = None
__hash__ = _BaseObject.__hash__
def __init__(self, group_name, network):
_BaseObject.__init__(self, network)
@ -2828,6 +2834,8 @@ class XSPF(_BaseObject):
uri = None
__hash__ = _BaseObject.__hash__
def __init__(self, uri, network):
_BaseObject.__init__(self, network)