(self, api, source, license, Engine)
| 601 | print "pattern.web.retweets()" |
| 602 | |
| 603 | def _test_search_image_size(self, api, source, license, Engine): |
| 604 | # Assert image URL's for different sizes actually exist. |
| 605 | if api == "Yahoo" and license == ("",""): |
| 606 | return |
| 607 | e = Engine(license, throttle=0.25) |
| 608 | for size in (web.TINY, web.SMALL, web.MEDIUM, web.LARGE): |
| 609 | v = e.search("cats", type=web.IMAGE, count=1, size=size, cached=False) |
| 610 | self.assertEqual(web.URL(v[0].url).exists, True) |
| 611 | print "pattern.web.%s.search(type=IMAGE, size=%s)" % (api, size.upper()) |
| 612 | |
| 613 | def test_yahoo_image_size(self): |
| 614 | self._test_search_image_size("Yahoo", *self.api["Yahoo"]) |
no test coverage detected