示例#1
0
文件: tests.py 项目: rblstr/flock
 def test_sanitise_short_youtube_url_fail_wrong(self):
     url = 'http://i.imgur.com/2A2IS5z.jpg'
     new_url = flock.sanitiseShortYouTubeURL(url)
     self.assertEquals(new_url, None)
示例#2
0
文件: tests.py 项目: rblstr/flock
 def test_sanitise_short_youtube_url_fail_no_videoid(self):
     url = 'http://youtu.be/'
     new_url = flock.sanitiseShortYouTubeURL(url)
     self.assertEquals(new_url, None)
示例#3
0
文件: tests.py 项目: rblstr/flock
 def test_sanitise_short_youtube_url_fail_long(self):
     url = 'http://www.youtube.com/watch?v=wRpHf4X7FNM'
     new_url = flock.sanitiseShortYouTubeURL(url)
     self.assertEquals(new_url, None)