[radiofrance] minor fixes

This commit is contained in:
Bezleputh 2015-07-06 16:17:14 +02:00
commit 706a96a1f8
2 changed files with 9 additions and 2 deletions

View file

@ -37,8 +37,8 @@ class RadioFranceTest(BackendTest):
self.assertTrue(len(streams) > 0)
l_sel = list(self.backend.iter_resources(objs=[BaseAudio], split_path=[name, 'selection']))
self.assertTrue(len(l_sel) > 0)
self.assertTrue(len(l_sel[0].url) > 0)
if len(l_sel) > 0:
self.assertTrue(len(l_sel[0].url) > 0)
l = list(self.backend.iter_resources(objs=[Radio], split_path=['francebleu']))
self.assertTrue(len(l) > 30)