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

Method test_products

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

Source from the content-addressed store, hash-verified

695 print "pattern.web.WikipediaSection"
696
697 def test_products(self):
698 # Assert product reviews and score.
699 source, license, Engine = self.api["Products"]
700 v = Engine(license).search("computer", cached=False)
701 self.assertTrue(isinstance(v[0].reviews, list))
702 self.assertTrue(isinstance(v[0].score, int))
703 print "pattern.web.Products.Result.reviews"
704 print "pattern.web.Products.Result.score"
705
706#---------------------------------------------------------------------------------------------------
707

Callers

nothing calls this directly

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected