def test_get(self,): self.yql.format = 'xml' response = self.yql.get('geo.countries', ['name', 'woeid'], 1) self.yql.format = 'json' logging.debug(pretty_xml(response.content)) self.assertEqual(response.status_code, 200)
def test_get(self, ): self.yql.format = 'xml' response = self.yql.get('geo.countries', ['name', 'woeid'], 1) self.yql.format = 'json' logging.debug(pretty_xml(response.content)) self.assertEqual(response.status_code, 200)
def test_use(self): self.yql.use('http://www.josuebrunel.org/users.xml',name='users') response = self.yql.raw_query('select * from users', format='xml') self.yql.yql_table_url = None logging.debug(pretty_xml(response.content)) self.assertEqual(response.status_code, 200)
def test_use(self): self.yql.use('http://www.josuebrunel.org/users.xml', name='users') response = self.yql.raw_query('select * from users', format='xml') self.yql.yql_table_url = None logging.debug(pretty_xml(response.content)) self.assertEqual(response.status_code, 200)