MCPcopy Index your code
hub / github.com/clips/pattern / test_google_identify

Method test_google_identify

test/test_web.py:582–591  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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")

Callers

nothing calls this directly

Calls 1

identifyMethod · 0.80

Tested by

no test coverage detected