grooveshark: fix test if user is not logged
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
61d6ca8916
commit
587e287063
1 changed files with 3 additions and 0 deletions
|
|
@ -31,6 +31,9 @@ class GroovesharkTest(BackendTest):
|
||||||
|
|
||||||
def test_grooveshark_user_playlist(self):
|
def test_grooveshark_user_playlist(self):
|
||||||
l1 = list(self.backend.iter_resources([BaseAudio], [u'playlists']))
|
l1 = list(self.backend.iter_resources([BaseAudio], [u'playlists']))
|
||||||
|
if(not self.backend.browser.is_logged()):
|
||||||
|
assert len(l1)==0
|
||||||
|
return
|
||||||
assert len(l1)
|
assert len(l1)
|
||||||
c = l1[0]
|
c = l1[0]
|
||||||
l2 = list(self.backend.iter_resources([BaseAudio], c.split_path))
|
l2 = list(self.backend.iter_resources([BaseAudio], c.split_path))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue