[arte] improve tests

This commit is contained in:
Bezleputh 2014-07-29 17:59:56 +02:00
commit 7bc7cd508d

View file

@ -26,8 +26,8 @@ class ArteTest(BackendTest):
BACKEND = 'arte'
def test_search(self):
l = list(self.backend.search_videos('arte'))
if len(l) > 0:
l = list(self.backend.search_videos('a'))
assert len(l)
v = l[0]
self.backend.fillobj(v, ('url',))
self.assertTrue(v.url, 'URL for video "%s" not found' % (v.id))