update test to try to open url

This commit is contained in:
Romain Bignon 2011-03-21 15:08:44 +01:00
commit 33c1b899e2
2 changed files with 2 additions and 0 deletions

View file

@ -27,3 +27,4 @@ class DailymotionTest(BackendTest):
v = l[0]
self.backend.fillobj(v, ('url',))
self.assertTrue(v.url and v.url.startswith('http://'), 'URL for video "%s" not found: %s' % (v.id, v.url))
self.backend.browser.openurl(v.url)

View file

@ -29,3 +29,4 @@ class YoupornTest(BackendTest):
v = l[0]
self.backend.fillobj(v, ('url',))
self.assertTrue(v.url and v.url.startswith('http://'), 'URL for video "%s" not found: %s' % (v.id, v.url))
self.backend.browser.openurl(v.url)