From 587e287063f3f9257707c79ee890a89e173451ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Thu, 2 Jan 2014 17:31:06 +0100 Subject: [PATCH] grooveshark: fix test if user is not logged MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- modules/grooveshark/test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/grooveshark/test.py b/modules/grooveshark/test.py index 256ee5ff..ec9af039 100644 --- a/modules/grooveshark/test.py +++ b/modules/grooveshark/test.py @@ -31,6 +31,9 @@ class GroovesharkTest(BackendTest): def test_grooveshark_user_playlist(self): l1 = list(self.backend.iter_resources([BaseAudio], [u'playlists'])) + if(not self.backend.browser.is_logged()): + assert len(l1)==0 + return assert len(l1) c = l1[0] l2 = list(self.backend.iter_resources([BaseAudio], c.split_path))