| 580 | pass |
| 581 | |
| 582 | def test_google_identify(self): |
| 583 | try: |
| 584 | # Assert Google Translate API (language detection). |
| 585 | # Requires license with billing enabled. |
| 586 | source, license, Engine = self.api["Google"] |
| 587 | v = Engine(license, throttle=0.25).identify(u"L'essence des mathématiques, c'est la liberté!", cached=False) |
| 588 | self.assertEqual(v[0], "fr") |
| 589 | print "pattern.web.Google.identify()" |
| 590 | except web.HTTP401Authentication: |
| 591 | pass |
| 592 | |
| 593 | def test_twitter_author(self): |
| 594 | self.assertEqual(web.author("me"), "from:me") |