Friendlier paths in canalplus

Lowercase, replace some separators.
This shows the point of having a path and a title!
Also try to fix the title if it is all uppercase.
This commit is contained in:
Laurent Bachelier 2012-03-10 23:40:16 +01:00
commit 5578618b06
2 changed files with 14 additions and 6 deletions

View file

@ -25,7 +25,7 @@ class CanalPlusTest(BackendTest):
BACKEND = 'canalplus'
def test_canalplus(self):
l = list(self.backend.search_videos('guignol'))
l = list(self.backend.search_videos(u'guignol'))
self.assertTrue(len(l) > 0)
v = l[0]
self.backend.fillobj(v, ('url',))
@ -35,5 +35,5 @@ class CanalPlusTest(BackendTest):
l = list(self.backend.iter_resources((BaseVideo, ), []))
self.assertTrue(len(l) > 0)
l = list(self.backend.iter_resources((BaseVideo, ), ['SPORT']))
l = list(self.backend.iter_resources((BaseVideo, ), [u'sport']))
self.assertTrue(len(l) > 0)