def test_url_not_matches(self): url = 'http://gfycat.com/SilentFirmDuckling.gif' self.assertFalse(GfyCat.url_matches(url))
def test_url_matches(self): url = 'http://gfycat.com/SilentFirmDuckling' self.assertTrue(GfyCat.url_matches(url))
def test_url_matches2(self): url = 'http://www.gfycat.com/NimbleReadyFish' self.assertTrue(GfyCat.url_matches(url))