def test_variable_substitution(self,): yql = YQL() var = {'home': 'Congo'} yql.set(var) response = yql.select('geo.states', remote_filter=(5,)).where(['place', '=', '@home']) logging.debug(pretty_json(response.content)) self.assertEqual(response.status_code, 200)
def setUp(self, ): self.oauth = OAuth1(None, None, from_file='credentials.json') self.yql = YQL(oauth=self.oauth)
def setUp(self, ): self.yql = YQL(diagnostics=True, )
def setUp(self, ): self.yql = YQL()
def test_cross_product(self): yql = YQL(format='xml', crossProduct=True) response = yql.select('weather.forecast').where( ['location', '=', '90210']) logging.debug("{0} {1}".format(response.status_code, response.reason)) self.assertEqual(response.status_code, 200)