コード例 #1
0
 def test_url_not_matches(self):
     url = 'http://gfycat.com/SilentFirmDuckling.gif'
     self.assertFalse(GfyCat.url_matches(url))
コード例 #2
0
 def test_url_matches(self):
     url = 'http://gfycat.com/SilentFirmDuckling'
     self.assertTrue(GfyCat.url_matches(url))
コード例 #3
0
 def test_url_matches2(self):
     url = 'http://www.gfycat.com/NimbleReadyFish'
     self.assertTrue(GfyCat.url_matches(url))